diff --git a/pkg/semtech-loramac/contrib/semtech_loramac.c b/pkg/semtech-loramac/contrib/semtech_loramac.c index 4a6fe42c75..3394e77488 100644 --- a/pkg/semtech-loramac/contrib/semtech_loramac.c +++ b/pkg/semtech-loramac/contrib/semtech_loramac.c @@ -383,7 +383,7 @@ void _init_loramac(semtech_loramac_t *mac, semtech_loramac_set_tx_port(mac, CONFIG_LORAMAC_DEFAULT_TX_PORT); semtech_loramac_set_tx_mode(mac, CONFIG_LORAMAC_DEFAULT_TX_MODE); semtech_loramac_set_system_max_rx_error(mac, - LORAMAC_DEFAULT_SYSTEM_MAX_RX_ERROR); + CONFIG_LORAMAC_DEFAULT_SYSTEM_MAX_RX_ERROR); semtech_loramac_set_min_rx_symbols(mac, LORAMAC_DEFAULT_MIN_RX_SYMBOLS); #ifdef MODULE_PERIPH_EEPROM _read_loramac_config(mac); diff --git a/sys/include/net/loramac.h b/sys/include/net/loramac.h index d45548ed4c..ce4529d5ed 100644 --- a/sys/include/net/loramac.h +++ b/sys/include/net/loramac.h @@ -405,8 +405,8 @@ extern "C" { /** * @brief Default maximum system overall timing error */ -#ifndef LORAMAC_DEFAULT_SYSTEM_MAX_RX_ERROR -#define LORAMAC_DEFAULT_SYSTEM_MAX_RX_ERROR (50) +#ifndef CONFIG_LORAMAC_DEFAULT_SYSTEM_MAX_RX_ERROR +#define CONFIG_LORAMAC_DEFAULT_SYSTEM_MAX_RX_ERROR (50) #endif /**