Skip to content

Commit 4a4f8de

Browse files
author
Hasnain Virk
committed
LoRaWAN: Wrong return code for JoinRequest retry
51f92b0 introduced handling for connection attempts while a connection was already underway or have been completed. Unfortunately a similar check slipped through and the stack was not able to continue sending join requests if an error happened.
1 parent 38744b9 commit 4a4f8de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

features/lorawan/lorastack/mac/LoRaMac.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -772,7 +772,7 @@ bool LoRaMac::continue_joining_process()
772772
}
773773

774774
// Schedule a retry
775-
if (handle_retransmission() != LORAWAN_STATUS_OK) {
775+
if (handle_retransmission() != LORAWAN_STATUS_CONNECT_IN_PROGRESS) {
776776
return false;
777777
}
778778

0 commit comments

Comments
 (0)