File tree Expand file tree Collapse file tree 5 files changed +5
-5
lines changed Expand file tree Collapse file tree 5 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -177,8 +177,6 @@ void webServerUpdate() {}
177
177
178
178
#ifndef COMPILE_ESPNOW
179
179
180
- bool espNowStop () {return false ;}
181
-
182
180
bool espnowGetState () {return ESPNOW_OFF;}
183
181
bool espnowIsPaired () {return false ;}
184
182
void espnowProcessRTCM (byte incoming) {}
@@ -189,6 +187,7 @@ void espnowStart() {}
189
187
#define ESPNOW_START () false
190
188
void espnowStaticPairing () {}
191
189
void espnowStop () {}
190
+ #define ESPNOW_STOP () true
192
191
void updateEspnow () {}
193
192
194
193
#endif // COMPILE_ESPNOW
Original file line number Diff line number Diff line change @@ -615,6 +615,7 @@ uint8_t receivedMAC[6]; // Holds the broadcast MAC during pairing
615
615
unsigned long lastEspnowRssiUpdate;
616
616
617
617
#define ESPNOW_START () espnowStart()
618
+ #define ESPNOW_STOP () espnowStop()
618
619
#endif // COMPILE_ESPNOW
619
620
620
621
int espnowRSSI;
Original file line number Diff line number Diff line change @@ -442,7 +442,7 @@ void stateUpdate()
442
442
displayWebConfigNotStarted (); // Display immediately while we wait for server to start
443
443
444
444
bluetoothStop (); // Bluetooth must be stopped to allow enough RAM for AP+STA (firmware check)
445
- espnowStop (); // We don't need ESP-NOW during web config
445
+ ESPNOW_STOP (); // We don't need ESP-NOW during web config
446
446
447
447
// The GNSS UART task is left running to allow GNSS receivers to obtain LLh data for 1Hz page updates
448
448
Original file line number Diff line number Diff line change @@ -261,7 +261,7 @@ void updateFromSD(const char *firmwareFileName)
261
261
}
262
262
263
263
// Turn off any tasks so that we are not disrupted
264
- espnowStop ();
264
+ ESPNOW_STOP ();
265
265
WIFI_STOP ();
266
266
bluetoothStop ();
267
267
Original file line number Diff line number Diff line change @@ -607,7 +607,7 @@ void menuRadio()
607
607
if (settings.enableEspNow == true )
608
608
ESPNOW_START ();
609
609
else
610
- espnowStop ();
610
+ ESPNOW_STOP ();
611
611
}
612
612
else if (settings.enableEspNow == true && incoming == 2 )
613
613
{
You can’t perform that action at this time.
0 commit comments