Skip to content

Commit e67bc02

Browse files
mazgchSuGliderP-R-O-C-H-Y
authored
WifiGeneric.cpp FIX ifdef should match function call (espressif#7004)
otherwise the compiler will complain about unused variable event Co-authored-by: Rodrigo Garcia <rodrigo.garcia@espressif.com> Co-authored-by: Jan Procházka <90197375+P-R-O-C-H-Y@users.noreply.github.com>
1 parent c996036 commit e67bc02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/WiFi/src/WiFiGeneric.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ static void _arduino_event_cb(void* arg, esp_event_base_t event_base, int32_t ev
495495
log_v("SC Found Channel");
496496
arduino_event.event_id = ARDUINO_EVENT_SC_FOUND_CHANNEL;
497497
} else if (event_base == SC_EVENT && event_id == SC_EVENT_GOT_SSID_PSWD) {
498-
#if ARDUHAL_LOG_LEVEL >= ARDUHAL_LOG_LEVEL_ERROR
498+
#if ARDUHAL_LOG_LEVEL >= ARDUHAL_LOG_LEVEL_VERBOSE
499499
smartconfig_event_got_ssid_pswd_t *event = (smartconfig_event_got_ssid_pswd_t *)event_data;
500500
log_v("SC: SSID: %s, Password: %s", (const char *)event->ssid, (const char *)event->password);
501501
#endif

0 commit comments

Comments
 (0)