[SX127x] Add missing state initialization (#1321)
This commit is contained in:
parent
c7d6ad3e95
commit
c467b005c2
1 changed files with 1 additions and 1 deletions
|
@ -1324,7 +1324,7 @@ int16_t SX127x::setIrqFlags(uint32_t irq) {
|
||||||
uint8_t usedPinFlags = 0;
|
uint8_t usedPinFlags = 0;
|
||||||
bool conflict = false;
|
bool conflict = false;
|
||||||
int16_t modem = getActiveModem();
|
int16_t modem = getActiveModem();
|
||||||
int16_t state;
|
int16_t state = RADIOLIB_ERR_NONE;
|
||||||
for(uint8_t i = 0; i <= 31; i++) {
|
for(uint8_t i = 0; i <= 31; i++) {
|
||||||
// check if the bit is set
|
// check if the bit is set
|
||||||
uint32_t irqBit = irq & (1UL << i);
|
uint32_t irqBit = irq & (1UL << i);
|
||||||
|
|
Loading…
Add table
Reference in a new issue