1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-26 15:03:53 +01:00

sys/net/gnrc_lorawan: use CONFIG_LORAMAC_DEFAULT_PRIVATE_NETWORK

This commit is contained in:
Alexandre Abadie 2022-01-08 11:37:50 +01:00
parent f22ba30a31
commit 50c5d84277
No known key found for this signature in database
GPG Key ID: 1C919A403CAE1405

View File

@ -92,8 +92,8 @@ void gnrc_lorawan_reset(gnrc_lorawan_t *mac)
dev->driver->set(dev, NETOPT_CODING_RATE, &cr, sizeof(cr));
uint8_t syncword = LORAMAC_DEFAULT_PUBLIC_NETWORK ? LORA_SYNCWORD_PUBLIC
: LORA_SYNCWORD_PRIVATE;
uint8_t syncword = IS_ACTIVE(CONFIG_LORAMAC_DEFAULT_PRIVATE_NETWORK) ? LORA_SYNCWORD_PRIVATE
: LORA_SYNCWORD_PUBLIC;
dev->driver->set(dev, NETOPT_SYNCWORD, &syncword, sizeof(syncword));