Skip to content

Commit be1786d

Browse files
committed
WebServer: When internet available or not AP, call networkConsumerAdd
1 parent d6527c7 commit be1786d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Firmware/RTK_Everywhere/WebServer.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1144,9 +1144,9 @@ void webServerStart()
11441144
systemPrintln("Web Server: Starting");
11451145

11461146
// Start the network
1147-
if (settings.wifiConfigOverAP == false)
1147+
if ((settings.wifiConfigOverAP == false) || networkHasInternet())
11481148
networkConsumerAdd(NETCONSUMER_WEB_CONFIG, NETWORK_ANY, __FILE__, __LINE__);
1149-
else
1149+
if (settings.wifiConfigOverAP)
11501150
networkSoftApConsumerAdd(NETCONSUMER_WEB_CONFIG, __FILE__, __LINE__);
11511151
webServerSetState(WEBSERVER_STATE_WAIT_FOR_NETWORK);
11521152
}

0 commit comments

Comments
 (0)