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

net/lorawan : Move 'LORAMAC_DEFAULT_MIN_RX_SYMBOLS' to 'CONFIG_'

This commit is contained in:
Akshai M 2020-11-23 19:10:10 +01:00
parent 216956d7b0
commit a2f505f116
2 changed files with 3 additions and 3 deletions

View File

@ -384,7 +384,7 @@ void _init_loramac(semtech_loramac_t *mac,
semtech_loramac_set_tx_mode(mac, CONFIG_LORAMAC_DEFAULT_TX_MODE);
semtech_loramac_set_system_max_rx_error(mac,
CONFIG_LORAMAC_DEFAULT_SYSTEM_MAX_RX_ERROR);
semtech_loramac_set_min_rx_symbols(mac, LORAMAC_DEFAULT_MIN_RX_SYMBOLS);
semtech_loramac_set_min_rx_symbols(mac, CONFIG_LORAMAC_DEFAULT_MIN_RX_SYMBOLS);
#ifdef MODULE_PERIPH_EEPROM
_read_loramac_config(mac);
#endif

View File

@ -412,8 +412,8 @@ extern "C" {
/**
* @brief Default minimum RX symbols to detect a frame
*/
#ifndef LORAMAC_DEFAULT_MIN_RX_SYMBOLS
#define LORAMAC_DEFAULT_MIN_RX_SYMBOLS (12)
#ifndef CONFIG_LORAMAC_DEFAULT_MIN_RX_SYMBOLS
#define CONFIG_LORAMAC_DEFAULT_MIN_RX_SYMBOLS (12)
#endif
/** @} */