change esp_wifi_scan_start to async mode (#574)

This commit is contained in:
Tomasz Scislowicz 2017-08-17 15:12:35 +02:00 committed by Me No Dev
parent 41e36a72f3
commit 3a8e28dc87

View File

@ -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;