Skip to content

Commit 78b0f44

Browse files
tablatronixdevyte
authored andcommitted
fixes #3795 (#3796)
don't ignore ret when handling AP enable/disable in softAPdisconnect
1 parent bec6a4d commit 78b0f44

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
@@ -278,7 +278,7 @@ bool ESP8266WiFiAPClass::softAPdisconnect(bool wifioff) {
278278
DEBUG_WIFI("[APdisconnect] set_config failed!\n");
279279
}
280280

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

0 commit comments

Comments
 (0)