1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2026-01-01 01:41:18 +01:00

net/gnrc_lorawan: use uint8_t for NETOPT_RX_SYMBOL_TIMEOUT

This commit is contained in:
Jose Alamos 2021-07-01 11:59:39 +02:00
parent 79e194783c
commit e791a86971
No known key found for this signature in database
GPG Key ID: F483EB800EF89DD9

View File

@ -129,7 +129,7 @@ static void _config_radio(gnrc_lorawan_t *mac, uint32_t channel_freq,
/* Switch to single listen mode */
const netopt_enable_t single = true;
dev->driver->set(dev, NETOPT_SINGLE_RECEIVE, &single, sizeof(single));
const uint16_t timeout = CONFIG_GNRC_LORAWAN_MIN_SYMBOLS_TIMEOUT;
const uint8_t timeout = CONFIG_GNRC_LORAWAN_MIN_SYMBOLS_TIMEOUT;
dev->driver->set(dev, NETOPT_RX_SYMBOL_TIMEOUT, &timeout,
sizeof(timeout));
}