Skip to content

Commit

Permalink
Merge pull request #1155 from SebKuzminsky/fix-clear-fhss-interrupt-6…
Browse files Browse the repository at this point in the history
….6.0

[SX127x] When clearing the FHSS interrupt, don't also clear all the others
  • Loading branch information
jgromes authored Jul 9, 2024
2 parents 61a4cae + a9bd1bf commit 5185443
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/SX127x/SX127x.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 5185443

Please sign in to comment.