Skip to content

Commit 4f43e48

Browse files
committed
Don't restart WiFi if there are no consumers
1 parent cb34a96 commit 4f43e48

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Firmware/RTK_Everywhere/RTK_Everywhere.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
#endif // COMPILE_WIFI
3333

3434
#define COMPILE_ZED // Comment out to remove ZED-F9x functionality
35-
#define COMPILE_L_BAND // Comment out to remove L-Band functionality
35+
#define COMPILE_L_BAND // Comment out to remove L-Band functionality
3636
#define COMPILE_UM980 // Comment out to remove UM980 functionality
3737
#define COMPILE_MOSAICX5 // Comment out to remove mosaic-X5 functionality
3838
#define COMPILE_LG290P // Comment out to remove LG290P functionality

Firmware/RTK_Everywhere/menuMain.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -299,8 +299,8 @@ void menuMain()
299299
gnss->debuggingEnable();
300300
}
301301

302-
// Restart WiFi if anything changes
303-
if (restartWiFi == true)
302+
// Restart WiFi if anything changes and we have consumers
303+
if (restartWiFi == true && networkConsumers() > 0)
304304
{
305305
restartWiFi = false;
306306

0 commit comments

Comments
 (0)