mirror of
https://github.com/thooge/esp32-nmea2000-obp60.git
synced 2026-09-11 19:55:14 +02:00
Fix Wifi AP shutdown during client WiFi reconnect attempt
This commit is contained in:
@@ -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