Merge pull request #238 from Scorgan01/GwWiFi

Fix Wifi AP shutdown during client WiFi reconnect attempt
This commit is contained in:
Norbert Walter
2026-04-30 19:01:19 +02:00
committed by GitHub
+4
View File
@@ -143,6 +143,7 @@ void GwWifi::loop(){
delay(300); delay(300);
if (!apActive) {
if (acquireMutex()){ if (acquireMutex()){
esp_err_t stopErr=esp_wifi_stop(); esp_err_t stopErr=esp_wifi_stop();
releaseMutex(); releaseMutex();
@@ -167,6 +168,9 @@ void GwWifi::loop(){
else{ else{
LOG_DEBUG(GwLog::ERROR,"GwWifi: mutex timeout in loop (start)"); LOG_DEBUG(GwLog::ERROR,"GwWifi: mutex timeout in loop (start)");
} }
} else {
connectInternal();
}
} }
} }
else{ else{