1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

examples/lorawan: avoid explicit cast to netdev

This commit is contained in:
Jose Alamos 2021-06-22 11:01:01 +02:00
parent bfbbec3de3
commit e04d62a969
No known key found for this signature in database
GPG Key ID: F483EB800EF89DD9

View File

@ -129,13 +129,13 @@ int main(void)
/* Initialize the radio driver */
#if IS_USED(MODULE_SX127X)
sx127x_setup(&sx127x, &sx127x_params[0], 0);
loramac.netdev = (netdev_t *)&sx127x;
loramac.netdev = &sx127x.netdev;
loramac.netdev->driver = &sx127x_driver;
#endif
#if IS_USED(MODULE_SX126X)
sx126x_setup(&sx126x, &sx126x_params[0], 0);
loramac.netdev = (netdev_t *)&sx126x;
loramac.netdev = &sx126x.netdev;
loramac.netdev->driver = &sx126x_driver;
#endif