mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-15 00:02:49 +03:00
Don't remove persistent WiFi settings when doing scan (#2946)
This commit is contained in:
@ -77,7 +77,7 @@ int8_t ESP8266WiFiScanClass::scanNetworks(bool async, bool show_hidden) {
|
||||
|
||||
int status = wifi_station_get_connect_status();
|
||||
if(status != STATION_GOT_IP && status != STATION_IDLE) {
|
||||
WiFi.disconnect(false);
|
||||
wifi_station_disconnect();
|
||||
}
|
||||
|
||||
scanDelete();
|
||||
|
Reference in New Issue
Block a user