mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
drivers/slipdev: avoid explicit cast to netdev
This commit is contained in:
parent
c225eaa74b
commit
2d0802e31f
@ -67,7 +67,7 @@ static void _slip_rx_cb(void *arg, uint8_t byte)
|
||||
check_end:
|
||||
if (byte == SLIPDEV_END) {
|
||||
if (dev->state == SLIPDEV_STATE_NET) {
|
||||
netdev_trigger_event_isr((netdev_t*) dev);
|
||||
netdev_trigger_event_isr(&dev->netdev);
|
||||
}
|
||||
dev->state = SLIPDEV_STATE_NONE;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user