Skip to content

Commit 2d59c75

Browse files
authored
Merge pull request #15227 from zul00/fix/lora_timing/join_req_retransmission/call_in
lorawan: Fix Join Request retransmission timing (Interop test)
2 parents bf05317 + 61f8374 commit 2d59c75

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

connectivity/lorawan/source/LoRaWANStack.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -739,7 +739,10 @@ void LoRaWANStack::process_reception_timeout(bool is_timeout)
739739
_loramac.on_radio_rx_timeout(is_timeout);
740740

741741
if (slot == RX_SLOT_WIN_2 && !_loramac.nwk_joined()) {
742-
state_controller(DEVICE_STATE_JOINING);
742+
const int ret = _queue->call_in(
743+
500, this, &LoRaWANStack::state_controller, DEVICE_STATE_JOINING);
744+
MBED_ASSERT(ret != 0);
745+
(void)ret;
743746
return;
744747
}
745748

0 commit comments

Comments
 (0)