Skip to content

Commit b3954cf

Browse files
committed
ESP-NOW: Move global variable into RTK_Everywhere.ino
1 parent b9892b9 commit b3954cf

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Firmware/RTK_Everywhere/ESPNOW.ino

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@
2121
frame is not critical.
2222
**********************************************************************/
2323

24-
bool espnowRequestPair = false; // Modified by states.ino, menuRadio, or CLI
25-
2624
#ifdef COMPILE_ESPNOW
2725

2826
//****************************************

Firmware/RTK_Everywhere/RTK_Everywhere.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -715,6 +715,7 @@ float lBandEBNO; // Used on system status menu
715715
// ESP-NOW Globals - For other module direct access
716716
bool espNowIncomingRTCM;
717717
bool espNowOutgoingRTCM;
718+
bool espnowRequestPair = false; // Modified by states.ino, menuRadio, or CLI
718719
int espNowRSSI;
719720
const uint8_t espNowBroadcastAddr[6] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
720721

@@ -1592,7 +1593,7 @@ bool logLengthExceeded() // Limit individual files to maxLogLength_minutes
15921593

15931594
if (nextLogTime_ms == 0) // Keep logging if nextLogTime_ms has not been set
15941595
return false;
1595-
1596+
15961597
// Note: this will roll over every 49.71 days...
15971598
// Solution: https://stackoverflow.com/a/3097744 - see issue #742
15981599
return (!((long)(nextLogTime_ms - millis()) > 0));

0 commit comments

Comments
 (0)