Skip to content

Commit 7ea919e

Browse files
committed
fixes esp8266#3795
1 parent 063c237 commit 7ea919e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/ESP8266WiFi/src/ESP8266WiFiAP.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ bool ESP8266WiFiAPClass::softAPdisconnect(bool wifioff) {
277277
DEBUG_WIFI("[APdisconnect] set_config failed!\n");
278278
}
279279

280-
if(wifioff) {
280+
if(ret && wifioff) {
281281
ret = WiFi.enableAP(false);
282282
}
283283

0 commit comments

Comments
 (0)