Commit 3a8e28dc authored by Tomasz Scislowicz's avatar Tomasz Scislowicz Committed by Me No Dev

change esp_wifi_scan_start to async mode (#574)

parent 41e36a72
......@@ -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.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::_scanStarted = true;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment