We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e9df04c + 8f44cec commit 9ab0473Copy full SHA for 9ab0473
libraries/WiFi/src/WiFiScan.cpp
@@ -113,6 +113,9 @@ int16_t
113
* @param status STATUS
114
*/
115
void WiFiScanClass::_scanDone() {
116
+ if (!(WiFiGenericClass::getStatusBits() & WIFI_SCANNING_BIT)) {
117
+ return; //Ignore if not scanning, scan was started by other
118
+ }
119
esp_wifi_scan_get_ap_num(&(WiFiScanClass::_scanCount));
120
if (WiFiScanClass::_scanResult) {
121
free(WiFiScanClass::_scanResult);
0 commit comments