Skip to content

Commit

Permalink
Clean up wifi before fall through to AP mode
Browse files Browse the repository at this point in the history
  • Loading branch information
BarbourSmith committed Jan 20, 2024
1 parent dfa487f commit dd17e5c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions FluidNC/src/WebUI/WifiConfig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -748,6 +748,10 @@ namespace WebUI {
case WiFiFallback:
if (StartSTA()) {
goto wifi_on;
}else{ // STA failed, reset
WiFi.mode(WIFI_OFF);
esp_wifi_restore();
delay(100);
}
// fall through to fallback to AP mode
case WiFiAP:
Expand Down

0 comments on commit dd17e5c

Please sign in to comment.