From a9bd1bffe88fcb88f2aff584cd2ea03bab1aa6ba Mon Sep 17 00:00:00 2001 From: Sebastian Kuzminsky Date: Mon, 8 Jul 2024 15:18:28 -0600 Subject: [PATCH] [SX127x] When clearing the FHSS interrupt, don't also clear all the others --- src/modules/SX127x/SX127x.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/SX127x/SX127x.cpp b/src/modules/SX127x/SX127x.cpp index 13096257d..d81671e83 100644 --- a/src/modules/SX127x/SX127x.cpp +++ b/src/modules/SX127x/SX127x.cpp @@ -1660,7 +1660,7 @@ uint8_t SX127x::getFHSSChannel(void) { void SX127x::clearFHSSInt(void) { int16_t modem = getActiveModem(); if(modem == RADIOLIB_SX127X_LORA) { - this->mod->SPIwriteRegister(RADIOLIB_SX127X_REG_IRQ_FLAGS, getIRQFlags() | RADIOLIB_SX127X_CLEAR_IRQ_FLAG_FHSS_CHANGE_CHANNEL); + this->mod->SPIwriteRegister(RADIOLIB_SX127X_REG_IRQ_FLAGS, RADIOLIB_SX127X_CLEAR_IRQ_FLAG_FHSS_CHANGE_CHANNEL); } else if(modem == RADIOLIB_SX127X_FSK_OOK) { return; //These are not the interrupts you are looking for }