diff --git a/cores/beken-72xx/arduino/libraries/WiFi/WiFiEvents.cpp b/cores/beken-72xx/arduino/libraries/WiFi/WiFiEvents.cpp index ed3f76f1e..f95ad19cd 100644 --- a/cores/beken-72xx/arduino/libraries/WiFi/WiFiEvents.cpp +++ b/cores/beken-72xx/arduino/libraries/WiFi/WiFiEvents.cpp @@ -38,7 +38,8 @@ static String waitForValidSSID(WiFiClass *pWiFi) { result = pWiFi->SSID(); if (!result.length()) { - for (std::size_t i = 0; i < 10; i++) { + std::size_t i = 0; + for (; i < 10; i++) { // Delay and query again. delay(1); result = pWiFi->SSID();