mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-19 23:22:16 +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");
|
DEBUG_WIFI("[APdisconnect] set_config failed!\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
if(wifioff) {
|
if(ret && wifioff) {
|
||||||
ret = WiFi.enableAP(false);
|
ret = WiFi.enableAP(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user