Skip to content

Commit 9a2aaca

Browse files
committed
Fix enableInterrupt conflict
timmbogner#221
1 parent 86cacd6 commit 9a2aaca

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/fdrs_lora.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ int loraAckState = stReady;
135135
#endif // FDRS_GATEWAY
136136

137137
volatile bool transmitFlag = false; // flag to indicate transmission or reception state
138-
volatile bool enableInterrupt = true; // disable interrupt when it's not needed
138+
volatile bool enableFDRSInterrupt = true; // disable interrupt when it's not needed
139139
volatile bool operationDone = false; // flag to indicate that a packet was sent or received
140140
unsigned long loraAckTimeout = 0;
141141
unsigned long rxCountDR = 0; // Number of total LoRa DR packets destined for us and of valid size
@@ -153,7 +153,7 @@ ICACHE_RAM_ATTR
153153
void setFlag(void)
154154
{
155155
// check if the interrupt is enabled
156-
if (!enableInterrupt)
156+
if (!enableFDRSInterrupt)
157157
{
158158
return;
159159
}
@@ -638,7 +638,7 @@ crcResult LoRaTxRxOperation()
638638
// DBG("TxFlag: " + String(transmitFlag));
639639
// DBG("TxStatus: " + String(TxStatus));
640640

641-
enableInterrupt = false;
641+
enableFDRSInterrupt = false;
642642
operationDone = false;
643643
if (transmitFlag) // the previous operation was transmission
644644
{
@@ -663,7 +663,7 @@ crcResult LoRaTxRxOperation()
663663
// Serial.println("RxINT!");
664664
}
665665
delay(10);
666-
enableInterrupt = true;
666+
enableFDRSInterrupt = true;
667667
}
668668
return crcReturned;
669669
}

0 commit comments

Comments
 (0)