From aa725f995f5ccc2e457df78b326ef168cd56b280 Mon Sep 17 00:00:00 2001 From: Florian Hoss Date: Tue, 19 Apr 2022 00:17:03 +0200 Subject: [PATCH] only show wifi reconnection in debug log level --- SourceCode/arduino/src/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/SourceCode/arduino/src/main.cpp b/SourceCode/arduino/src/main.cpp index 43c95f6..af28b3f 100644 --- a/SourceCode/arduino/src/main.cpp +++ b/SourceCode/arduino/src/main.cpp @@ -9,15 +9,15 @@ ESPFirewall *firewall; void setup_wifi() { - uint8_t max_retries = 10; + uint8_t max_retries = 5; uint8_t retries = 1; log_i("Attempting to connect to WPA SSID: %s", ssid); WiFi.mode(WIFI_STA); WiFi.begin(ssid, psk); while (WiFi.status() != WL_CONNECTED && retries <= max_retries) { - delay(1000); - log_i("Connecting... (%i/%i)", retries++, max_retries); + delay(2000); + log_d("Connecting... (%i/%i)", retries++, max_retries); } esp_ip_address = WiFi.localIP().toString().c_str(); log_i("Connected, IP Address: %s", esp_ip_address);