Merge pull request #11653 from aabadie/pr/pkg/semtech-loramac-cleanup-rx-getset

pkg/semtech-loramac: update rx parameters type
This commit is contained in:
Alexandre Abadie 2019-06-07 15:18:21 +02:00 committed by GitHub
commit ce11ad52c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

View File

@ -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);

View File

@ -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