Skip to content

Commit 01240fc

Browse files
committed
update comments
1 parent 563f4a8 commit 01240fc

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

libraries/ESP8266WiFi/src/ESP8266WiFiMulti.cpp

+3-4
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ static void printWiFiStatus(wl_status_t status)
8484
static wl_status_t waitWiFiConnect(uint32_t connectTimeoutMs)
8585
{
8686
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
8989
esp_delay(connectTimeoutMs,
9090
[&status]() {
9191
status = WiFi.status();
@@ -236,8 +236,7 @@ int8_t ESP8266WiFiMulti::startScan()
236236
WiFi.scanNetworks(true);
237237

238238
// 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
241240
esp_delay(WIFI_SCAN_TIMEOUT_MS,
242241
[&scanResult]() {
243242
scanResult = WiFi.scanComplete();

0 commit comments

Comments
 (0)