1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00

Merge pull request #13596 from gschorcht/tests/driver_sx127x_fix_enum

tests: fix netopt_state_t value handling in driver_sx127x
This commit is contained in:
benpicco 2020-03-09 15:03:17 +01:00 committed by GitHub
commit 780e6a7630
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -266,7 +266,7 @@ int listen_cmd(int argc, char **argv)
netdev->driver->set(netdev, NETOPT_RX_TIMEOUT, &timeout, sizeof(timeout)); netdev->driver->set(netdev, NETOPT_RX_TIMEOUT, &timeout, sizeof(timeout));
/* Switch to RX state */ /* 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)); netdev->driver->set(netdev, NETOPT_STATE, &state, sizeof(state));
printf("Listen mode set\n"); printf("Listen mode set\n");