File tree 1 file changed +8
-2
lines changed
libraries/ESP8266WiFi/src
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -87,7 +87,10 @@ static wl_status_t waitWiFiConnect(uint32_t connectTimeoutMs)
87
87
// The final argument, intvl_ms, to esp_delay influences how frequently
88
88
// the scheduled recurrent functions (Schedule.h) are probed.
89
89
esp_delay (connectTimeoutMs,
90
- [&status]() { status = WiFi.status (); return status != WL_CONNECTED && status != WL_CONNECT_FAILED; }, 0 );
90
+ [&status]() {
91
+ status = WiFi.status ();
92
+ return status != WL_CONNECTED && status != WL_CONNECT_FAILED;
93
+ }, 0 );
91
94
92
95
// Check status
93
96
if (status == WL_CONNECTED) {
@@ -236,7 +239,10 @@ int8_t ESP8266WiFiMulti::startScan()
236
239
// The final argument, intvl_ms, to esp_delay influences how frequently
237
240
// the scheduled recurrent functions (Schedule.h) are probed.
238
241
esp_delay (WIFI_SCAN_TIMEOUT_MS,
239
- [&scanResult]() { scanResult = WiFi.scanComplete (); return scanResult < 0 ; }, 0 );
242
+ [&scanResult]() {
243
+ scanResult = WiFi.scanComplete ();
244
+ return scanResult < 0 ;
245
+ }, 0 );
240
246
// Check for scan timeout which may occur when scan does not report completion
241
247
if (scanResult < 0 ) {
242
248
DEBUG_WIFI_MULTI (" [WIFIM] Scan timeout\n " );
You can’t perform that action at this time.
0 commit comments