We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 371d141 commit 2c2d6a3Copy full SHA for 2c2d6a3
libraries/ESP8266WiFi/src/ESP8266WiFiScan.cpp
@@ -77,7 +77,7 @@ int8_t ESP8266WiFiScanClass::scanNetworks(bool async, bool show_hidden) {
77
78
int status = wifi_station_get_connect_status();
79
if(status != STATION_GOT_IP && status != STATION_IDLE) {
80
- WiFi.disconnect(false);
+ wifi_station_disconnect();
81
}
82
83
scanDelete();
0 commit comments