mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
pkg/semtech-loramac: update rx parameters type
System max RX error is in ms and should be uint32_t, min RX symbols is supposed to be uint8_t in loramac-node code
This commit is contained in:
parent
35e083a94c
commit
2703316900
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user