File tree 1 file changed +3
-4
lines changed
libraries/ESP8266WiFi/src
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -84,8 +84,8 @@ static void printWiFiStatus(wl_status_t status)
84
84
static wl_status_t waitWiFiConnect (uint32_t connectTimeoutMs)
85
85
{
86
86
wl_status_t status = WL_CONNECT_FAILED;
87
- // The final argument, intvl_ms, to esp_delay determines
88
- // the max ms interval at which status is checked
87
+ // Wait for WiFi to connect
88
+ // stop waiting upon status checked every 100ms or when timeout is reached
89
89
esp_delay (connectTimeoutMs,
90
90
[&status]() {
91
91
status = WiFi.status ();
@@ -236,8 +236,7 @@ int8_t ESP8266WiFiMulti::startScan()
236
236
WiFi.scanNetworks (true );
237
237
238
238
// Wait for WiFi scan change or timeout
239
- // The final argument, intvl_ms, to esp_delay determines
240
- // the max ms interval at which status is checked
239
+ // stop waiting upon status checked every 100ms or when timeout is reached
241
240
esp_delay (WIFI_SCAN_TIMEOUT_MS,
242
241
[&scanResult]() {
243
242
scanResult = WiFi.scanComplete ();
You can’t perform that action at this time.
0 commit comments