diff --git a/pkg/semtech-loramac/contrib/semtech_loramac.c b/pkg/semtech-loramac/contrib/semtech_loramac.c index a20d86ad26..e86c41080b 100644 --- a/pkg/semtech-loramac/contrib/semtech_loramac.c +++ b/pkg/semtech-loramac/contrib/semtech_loramac.c @@ -392,7 +392,7 @@ void _init_loramac(semtech_loramac_t *mac, semtech_loramac_set_tx_port(mac, LORAMAC_DEFAULT_TX_PORT); semtech_loramac_set_tx_mode(mac, LORAMAC_DEFAULT_TX_MODE); semtech_loramac_set_system_max_rx_error(mac, - LORAMAC_DEFAULT_SYSTEM_MAX_RX_ERROR); + 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/pkg/semtech-loramac/contrib/semtech_loramac_getset.c b/pkg/semtech-loramac/contrib/semtech_loramac_getset.c index 5869b947ce..e8bacc3b82 100644 --- a/pkg/semtech-loramac/contrib/semtech_loramac_getset.c +++ b/pkg/semtech-loramac/contrib/semtech_loramac_getset.c @@ -290,7 +290,7 @@ uint8_t semtech_loramac_get_tx_mode(semtech_loramac_t *mac) return mac->cnf; } -void semtech_loramac_set_system_max_rx_error(semtech_loramac_t *mac, int error) +void semtech_loramac_set_system_max_rx_error(semtech_loramac_t *mac, uint32_t error) { MibRequestConfirm_t mibReq; mutex_lock(&mac->lock); @@ -300,7 +300,7 @@ void semtech_loramac_set_system_max_rx_error(semtech_loramac_t *mac, int error) mutex_unlock(&mac->lock); } -void semtech_loramac_set_min_rx_symbols(semtech_loramac_t *mac, int min_rx) +void semtech_loramac_set_min_rx_symbols(semtech_loramac_t *mac, uint8_t min_rx) { MibRequestConfirm_t mibReq; mutex_lock(&mac->lock); diff --git a/pkg/semtech-loramac/include/semtech_loramac.h b/pkg/semtech-loramac/include/semtech_loramac.h index 16e60a4688..d32d0dbcdf 100644 --- a/pkg/semtech-loramac/include/semtech_loramac.h +++ b/pkg/semtech-loramac/include/semtech_loramac.h @@ -429,7 +429,7 @@ void semtech_loramac_set_tx_port(semtech_loramac_t *mac, uint8_t port); * @param[in] mac Pointer to the mac * @param[in] error The maximum rx timing error */ -void semtech_loramac_set_system_max_rx_error(semtech_loramac_t *mac, int error); +void semtech_loramac_set_system_max_rx_error(semtech_loramac_t *mac, uint32_t error); /** * @brief Sets the minimum required number of symbols to detect a frame @@ -437,7 +437,7 @@ void semtech_loramac_set_system_max_rx_error(semtech_loramac_t *mac, int error); * @param[in] mac Pointer to the mac * @param[in] min_rx The minimum rx symbols */ -void semtech_loramac_set_min_rx_symbols(semtech_loramac_t *mac, int min_rx); +void semtech_loramac_set_min_rx_symbols(semtech_loramac_t *mac, uint8_t min_rx); /** * @brief Gets the TX application port