From 863eb1dbc8aa37854bcdb42eacb4dacacdb2d076 Mon Sep 17 00:00:00 2001 From: Michael Ammann Date: Mon, 18 Jul 2022 21:25:10 +0200 Subject: [PATCH] ifdef should match function call otherwise the compiler will complain about unused variable event --- libraries/WiFi/src/WiFiGeneric.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/WiFi/src/WiFiGeneric.cpp b/libraries/WiFi/src/WiFiGeneric.cpp index 0a8eb93081b..4034a848c03 100644 --- a/libraries/WiFi/src/WiFiGeneric.cpp +++ b/libraries/WiFi/src/WiFiGeneric.cpp @@ -495,7 +495,7 @@ static void _arduino_event_cb(void* arg, esp_event_base_t event_base, int32_t ev log_v("SC Found Channel"); arduino_event.event_id = ARDUINO_EVENT_SC_FOUND_CHANNEL; } else if (event_base == SC_EVENT && event_id == SC_EVENT_GOT_SSID_PSWD) { - #if ARDUHAL_LOG_LEVEL >= ARDUHAL_LOG_LEVEL_ERROR + #if ARDUHAL_LOG_LEVEL >= ARDUHAL_LOG_LEVEL_VERBOSE smartconfig_event_got_ssid_pswd_t *event = (smartconfig_event_got_ssid_pswd_t *)event_data; log_v("SC: SSID: %s, Password: %s", (const char *)event->ssid, (const char *)event->password); #endif