1
0
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:
Shawn A 2017-11-17 17:28:34 -06:00 committed by Develo
parent bec6a4d302
commit 78b0f44348

View File

@ -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);
}