mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
slipdev: adapt for tsrb API type change
This commit is contained in:
parent
31c49c58f1
commit
5dafce71be
@ -44,7 +44,7 @@ static int _init(netdev_t *netdev)
|
||||
DEBUG("slipdev: initializing device %p on UART %i with baudrate %" PRIu32 "\n",
|
||||
(void *)dev, dev->config.uart, dev->config.baudrate);
|
||||
/* initialize buffers */
|
||||
tsrb_init(&dev->inbuf, dev->rxmem, sizeof(dev->rxmem));
|
||||
tsrb_init(&dev->inbuf, (uint8_t *)dev->rxmem, sizeof(dev->rxmem));
|
||||
if (uart_init(dev->config.uart, dev->config.baudrate, _slip_rx_cb,
|
||||
dev) != UART_OK) {
|
||||
LOG_ERROR("slipdev: error initializing UART %i with baudrate %" PRIu32 "\n",
|
||||
|
Loading…
Reference in New Issue
Block a user