From a04bfc00e08cd88bf6d7eebab95ff7f229fe2215 Mon Sep 17 00:00:00 2001 From: Cossid Date: Fri, 19 Apr 2024 11:03:25 -0500 Subject: [PATCH] Fix compile error. --- cores/beken-72xx/arduino/libraries/WiFi/WiFiEvents.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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();