Skip to content

Commit

Permalink
[LoRaWAN] Do not reject first JoinAccept for 1.0.4 on Chirpstack
Browse files Browse the repository at this point in the history
  • Loading branch information
StevenCellist committed Dec 14, 2024
1 parent 577a076 commit 957a533
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/protocols/LoRaWAN/LoRaWAN.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -717,7 +717,7 @@ int16_t LoRaWANNode::processJoinAccept(LoRaWANJoinEvent_t *joinEvent) {
}
} else {
// for v1.0.4, the JoinNonce is simply a non-repeating value (we only check the last value)
if(joinNonceNew == this->joinNonce) {
if((this->joinNonce > 0) && (joinNonceNew == this->joinNonce)) {
return(RADIOLIB_ERR_JOIN_NONCE_INVALID);
}
}
Expand Down

0 comments on commit 957a533

Please sign in to comment.