[LoRaWAN] Do not reject first JoinAccept for 1.0.4 on Chirpstack

This commit is contained in:
StevenCellist 2024-12-14 12:39:27 +01:00
parent 577a0761ac
commit 957a533089

View file

@ -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);
}
}