mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-21 10:26:06 +03:00
don't ignore ret when handling AP enable/disable in softAPdisconnect
This commit is contained in:
parent
bec6a4d302
commit
78b0f44348
@ -278,7 +278,7 @@ bool ESP8266WiFiAPClass::softAPdisconnect(bool wifioff) {
|
||||
DEBUG_WIFI("[APdisconnect] set_config failed!\n");
|
||||
}
|
||||
|
||||
if(wifioff) {
|
||||
if(ret && wifioff) {
|
||||
ret = WiFi.enableAP(false);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user