mirror of
https://github.com/thooge/esp32-nmea2000-obp60.git
synced 2026-10-30 02:12:41 +01:00
Fix Wifi AP shutdown during client WiFi reconnect attempt
This commit is contained in:
1 parent
3b2f73e22a
commit
cfac5b0a05
1 file changed
+4
@@ -143,6 +143,7 @@ void GwWifi::loop(){
|
||||
|
||||
delay(300);
|
||||
|
||||
if (!apActive) {
|
||||
if (acquireMutex()){
|
||||
esp_err_t stopErr=esp_wifi_stop();
|
||||
releaseMutex();
|
||||
@@ -167,6 +168,9 @@ void GwWifi::loop(){
|
||||
else{
|
||||
LOG_DEBUG(GwLog::ERROR,"GwWifi: mutex timeout in loop (start)");
|
||||
}
|
||||
} else {
|
||||
connectInternal();
|
||||
}
|
||||
}
|
||||
}
|
||||
else{
|
||||
|
||||
Reference in new issue
Block a user