change esp_wifi_scan_start to async mode (#574)
This commit is contained in:
parent
41e36a72f3
commit
3a8e28dc87
@ -79,7 +79,7 @@ int8_t WiFiScanClass::scanNetworks(bool async, bool show_hidden, bool passive, u
|
|||||||
config.scan_time.active.min = 100;
|
config.scan_time.active.min = 100;
|
||||||
config.scan_time.active.max = max_ms_per_chan;
|
config.scan_time.active.max = max_ms_per_chan;
|
||||||
}
|
}
|
||||||
if(esp_wifi_scan_start(&config, WiFiScanClass::_scanAsync) == ESP_OK) {
|
if(esp_wifi_scan_start(&config, false) == ESP_OK) {
|
||||||
WiFiScanClass::_scanComplete = false;
|
WiFiScanClass::_scanComplete = false;
|
||||||
WiFiScanClass::_scanStarted = true;
|
WiFiScanClass::_scanStarted = true;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user