Skip to content

Commit 2c2d6a3

Browse files
committed
Don't remove persistent WiFi settings when doing scan (#2946)
1 parent 371d141 commit 2c2d6a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/ESP8266WiFi/src/ESP8266WiFiScan.cpp

+1-1
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)