Skip to content

Commit d3bf6a6

Browse files
committed
Avoid network layer when in browser config mode
1 parent 903f559 commit d3bf6a6

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

Firmware/RTK_Everywhere/Network.ino

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1037,6 +1037,9 @@ const char * networkTypeToString(uint8_t type)
10371037
//----------------------------------------
10381038
void networkTypeUpdate(uint8_t networkType)
10391039
{
1040+
if(inWiFiConfigMode())
1041+
return; //Avoid network layer while in Browser Config Mode
1042+
10401043
char errorMsg[64];
10411044
NETWORK_DATA *network;
10421045

Firmware/RTK_Everywhere/States.ino

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -421,6 +421,7 @@ void stateUpdate()
421421

422422
displayWiFiConfigNotStarted(); // Display immediately during SD cluster pause
423423

424+
WIFI_STOP(); //Notify the network layer that it should stop so we can take over control of WiFi
424425
bluetoothStop();
425426
espnowStop();
426427

0 commit comments

Comments
 (0)