1
0
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:
Jose Alamos 2021-06-22 16:02:29 +02:00
parent c225eaa74b
commit 2d0802e31f
No known key found for this signature in database
GPG Key ID: F483EB800EF89DD9

View File

@ -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;
}