From 863c4825e022be7bb76f9ae396b1ef71915f1d12 Mon Sep 17 00:00:00 2001 From: "Dirk O. Kaar" Date: Wed, 13 Oct 2021 08:10:32 +0200 Subject: [PATCH] Code cleanup as per review feedback. --- libraries/ESP8266WiFi/src/ESP8266WiFiMulti.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/libraries/ESP8266WiFi/src/ESP8266WiFiMulti.cpp b/libraries/ESP8266WiFi/src/ESP8266WiFiMulti.cpp index a4d95383e5..0f6cb72abe 100644 --- a/libraries/ESP8266WiFi/src/ESP8266WiFiMulti.cpp +++ b/libraries/ESP8266WiFi/src/ESP8266WiFiMulti.cpp @@ -87,7 +87,10 @@ static wl_status_t waitWiFiConnect(uint32_t connectTimeoutMs) // The final argument, intvl_ms, to esp_delay influences how frequently // the scheduled recurrent functions (Schedule.h) are probed. esp_delay(connectTimeoutMs, - [&status]() { status = WiFi.status(); return status != WL_CONNECTED && status != WL_CONNECT_FAILED; }, 0); + [&status]() { + status = WiFi.status(); + return status != WL_CONNECTED && status != WL_CONNECT_FAILED; + }, 0); // Check status if (status == WL_CONNECTED) { @@ -236,7 +239,10 @@ int8_t ESP8266WiFiMulti::startScan() // The final argument, intvl_ms, to esp_delay influences how frequently // the scheduled recurrent functions (Schedule.h) are probed. esp_delay(WIFI_SCAN_TIMEOUT_MS, - [&scanResult]() { scanResult = WiFi.scanComplete(); return scanResult < 0; }, 0); + [&scanResult]() { + scanResult = WiFi.scanComplete(); + return scanResult < 0; + }, 0); // Check for scan timeout which may occur when scan does not report completion if (scanResult < 0) { DEBUG_WIFI_MULTI("[WIFIM] Scan timeout\n");