Skip to content

Commit 0fbd959

Browse files
committed
TcpServer: Use wifiSoftApOnline instead of wifiSoftApRunning
1 parent 544eec9 commit 0fbd959

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Firmware/RTK_Everywhere/TcpServer.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ void tcpServerUpdate()
460460
// Wait until the network is connected
461461
case TCP_SERVER_STATE_WAIT_FOR_NETWORK:
462462
// Wait until the network is connected to the media
463-
if (connected || wifiSoftApRunning)
463+
if (connected || wifiSoftApOnline)
464464
{
465465
// Delay before starting the TCP server
466466
if ((millis() - tcpServerTimer) >= (1 * 1000))
@@ -481,7 +481,7 @@ void tcpServerUpdate()
481481
// Handle client connections and link failures
482482
case TCP_SERVER_STATE_RUNNING:
483483
// Determine if the network has failed
484-
if ((connected == false && wifiSoftApRunning == false) || (!settings.enableTcpServer && !settings.baseCasterOverride))
484+
if ((connected == false && wifiSoftApOnline == false) || (!settings.enableTcpServer && !settings.baseCasterOverride))
485485
{
486486
if ((settings.debugTcpServer || PERIODIC_DISPLAY(PD_TCP_SERVER_DATA)) && (!inMainMenu))
487487
{

0 commit comments

Comments
 (0)