From 32dc5babd4446abf86bb7ee43c381db19b2bbf9f Mon Sep 17 00:00:00 2001 From: StevenCellist Date: Fri, 16 Aug 2024 00:05:55 +0200 Subject: [PATCH] [LoRaWAN] Move to generalized IRQ check (PHY) --- src/protocols/LoRaWAN/LoRaWAN.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/protocols/LoRaWAN/LoRaWAN.cpp b/src/protocols/LoRaWAN/LoRaWAN.cpp index 90325ecf..92b0b2ee 100644 --- a/src/protocols/LoRaWAN/LoRaWAN.cpp +++ b/src/protocols/LoRaWAN/LoRaWAN.cpp @@ -1226,7 +1226,7 @@ int16_t LoRaWANNode::downlinkCommon() { RADIOLIB_DEBUG_PROTOCOL_PRINTLN("Closing Rx%d window", i+1); // check if the IRQ bit for Rx Timeout is set - if(!this->phyLayer->isRxTimeout()) { + if(!this->phyLayer->isIrqSet(RADIOLIB_IRQ_TIMEOUT)) { break; } else if(i == 0) { @@ -1248,7 +1248,7 @@ int16_t LoRaWANNode::downlinkCommon() { this->rxDelayEnd = mod->hal->millis(); // if we got here due to a timeout, stop ongoing activities - if(this->phyLayer->isRxTimeout()) { + if(this->phyLayer->isIrqSet(RADIOLIB_IRQ_TIMEOUT)) { this->phyLayer->standby(); // TODO check: this should be done automagically due to RxSingle? if(this->modulation == RADIOLIB_LORAWAN_MODULATION_LORA) { this->phyLayer->invertIQ(false);