diff --git a/src/modules/SX127x/SX127x.cpp b/src/modules/SX127x/SX127x.cpp index 82755db05..6ab426f00 100644 --- a/src/modules/SX127x/SX127x.cpp +++ b/src/modules/SX127x/SX127x.cpp @@ -1324,7 +1324,7 @@ int16_t SX127x::setIrqFlags(uint32_t irq) { uint8_t usedPinFlags = 0; bool conflict = false; int16_t modem = getActiveModem(); - int16_t state; + int16_t state = RADIOLIB_ERR_NONE; for(uint8_t i = 0; i <= 31; i++) { // check if the bit is set uint32_t irqBit = irq & (1UL << i);