Skip to content

Commit 81f5dec

Browse files
authored
Merge pull request #7785 from kivaisan/fix_join_accept_failure_handling
Lora: Fix join-response failure handling
2 parents d28d13c + efeeb09 commit 81f5dec

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

features/lorawan/LoRaWANStack.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -659,6 +659,7 @@ void LoRaWANStack::process_reception(const uint8_t *const payload, uint16_t size
659659
}
660660

661661
if (!_loramac.nwk_joined()) {
662+
_ready_for_rx = true;
662663
return;
663664
}
664665

@@ -1181,7 +1182,8 @@ void LoRaWANStack::process_joining_state(lorawan_status_t &op_status)
11811182
return;
11821183
}
11831184

1184-
if (_device_current_state == DEVICE_STATE_AWAITING_JOIN_ACCEPT) {
1185+
if (_device_current_state == DEVICE_STATE_AWAITING_JOIN_ACCEPT &&
1186+
_loramac.get_current_slot() != RX_SLOT_WIN_1) {
11851187
_device_current_state = DEVICE_STATE_JOINING;
11861188
// retry join
11871189
bool can_continue = _loramac.continue_joining_process();

0 commit comments

Comments
 (0)