mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #7895 from kivaisan/remove_duplicate_linkcheckreq
Lora: Remove duplicate LinkCheckReq MAC commandpull/7940/merge
commit
4fb3aec84a
|
|
@ -306,7 +306,7 @@ int16_t LoRaWANStack::handle_tx(const uint8_t port, const uint8_t *data,
|
|||
// add a link check request with normal data, until the application
|
||||
// explicitly removes it.
|
||||
if (_link_check_requested) {
|
||||
set_link_check_request();
|
||||
_loramac.setup_link_check_request();
|
||||
}
|
||||
|
||||
if (!_lw_session.active) {
|
||||
|
|
@ -442,13 +442,12 @@ lorawan_status_t LoRaWANStack::set_link_check_request()
|
|||
return LORAWAN_STATUS_NOT_INITIALIZED;
|
||||
}
|
||||
|
||||
_link_check_requested = true;
|
||||
if (!_callbacks.link_check_resp) {
|
||||
tr_error("Must assign a callback function for link check request. ");
|
||||
return LORAWAN_STATUS_PARAMETER_INVALID;
|
||||
}
|
||||
|
||||
_loramac.setup_link_check_request();
|
||||
_link_check_requested = true;
|
||||
return LORAWAN_STATUS_OK;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue