Skip to content

Commit 9225cd4

Browse files
committed
WiFi: Move wifiStop routine
1 parent 00f44a2 commit 9225cd4

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

Firmware/RTK_Everywhere/WiFi.ino

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -942,6 +942,16 @@ void wifiStationRestart(NetIndex_t index, uintptr_t parameter, bool debug)
942942
networkSequenceNextEntry(NETWORK_WIFI_STATION, debug);
943943
}
944944

945+
//*********************************************************************
946+
// Stop WiFi, used by wifiStopSequence
947+
void wifiStop(NetIndex_t index, uintptr_t parameter, bool debug)
948+
{
949+
// Stop WiFi station
950+
wifiStop();
951+
952+
networkSequenceNextEntry(NETWORK_WIFI_STATION, settings.debugNetworkLayer);
953+
}
954+
945955
//*********************************************************************
946956
// Stop WiFi and release all resources
947957
void wifiStop()
@@ -991,14 +1001,6 @@ void wifiStop()
9911001
wifiApRunning = false;
9921002
}
9931003

994-
//*********************************************************************
995-
// Needed for wifiStopSequence
996-
void wifiStop(NetIndex_t index, uintptr_t parameter, bool debug)
997-
{
998-
wifiStop();
999-
networkSequenceNextEntry(NETWORK_WIFI_STATION, settings.debugNetworkLayer);
1000-
}
1001-
10021004
//*********************************************************************
10031005
// Stop WiFi and release all resources
10041006
void wifiStopAll()

0 commit comments

Comments
 (0)