From a2f505f116486c21b57c5553c53345e7ad96f29f Mon Sep 17 00:00:00 2001 From: Akshai M Date: Mon, 23 Nov 2020 19:10:10 +0100 Subject: [PATCH] net/lorawan : Move 'LORAMAC_DEFAULT_MIN_RX_SYMBOLS' to 'CONFIG_' --- pkg/semtech-loramac/contrib/semtech_loramac.c | 2 +- sys/include/net/loramac.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/semtech-loramac/contrib/semtech_loramac.c b/pkg/semtech-loramac/contrib/semtech_loramac.c index 3394e77488..782cff9c1d 100644 --- a/pkg/semtech-loramac/contrib/semtech_loramac.c +++ b/pkg/semtech-loramac/contrib/semtech_loramac.c @@ -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 diff --git a/sys/include/net/loramac.h b/sys/include/net/loramac.h index ce4529d5ed..c83c0645bd 100644 --- a/sys/include/net/loramac.h +++ b/sys/include/net/loramac.h @@ -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 /** @} */