[LoRaWAN] Force default Rx2 for JoinAccept

This commit is contained in:
StevenCellist 2024-05-25 15:25:46 +02:00
parent 7186ae598b
commit 139fc7ee35

View file

@ -537,6 +537,9 @@ int16_t LoRaWANNode::activateOTAA(uint8_t joinDr, LoRaWANJoinEvent_t *joinEvent)
this->rxDelays[0] = RADIOLIB_LORAWAN_JOIN_ACCEPT_DELAY_1_MS;
this->rxDelays[1] = RADIOLIB_LORAWAN_JOIN_ACCEPT_DELAY_2_MS;
// make sure the Rx2 settings are back to this band's default
this->rx2 = this->band->rx2;
// handle Rx1 and Rx2 windows - returns RADIOLIB_ERR_NONE if a downlink is received
state = downlinkCommon();
RADIOLIB_ASSERT(state);