1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-25 06:23:53 +01:00

tests: fix enumeration type usage in driver_sx127x

This commit is contained in:
Gunar Schorcht 2020-03-09 13:52:58 +01:00
parent 95f34e00b9
commit b8777e9a9d

View File

@ -266,7 +266,7 @@ int listen_cmd(int argc, char **argv)
netdev->driver->set(netdev, NETOPT_RX_TIMEOUT, &timeout, sizeof(timeout));
/* Switch to RX state */
uint8_t state = NETOPT_STATE_RX;
netopt_state_t state = NETOPT_STATE_RX;
netdev->driver->set(netdev, NETOPT_STATE, &state, sizeof(state));
printf("Listen mode set\n");