Skip to content

Commit e7ea117

Browse files
igrrd-a-v
authored andcommitted
Don't remove persistent WiFi settings when doing scan (esp8266#2946)
1 parent 0f16d1b commit e7ea117

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/ESP8266WiFi/src/ESP8266WiFiScan.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ int8_t ESP8266WiFiScanClass::scanNetworks(bool async, bool show_hidden) {
7777

7878
int status = wifi_station_get_connect_status();
7979
if(status != STATION_GOT_IP && status != STATION_IDLE) {
80-
WiFi.disconnect(false);
80+
wifi_station_disconnect();
8181
}
8282

8383
scanDelete();

0 commit comments

Comments
 (0)