Skip to content

Commit 4e2ca30

Browse files
committed
esp32/modnetwork: Simplify event_handler messages.
Only print the event id if it's an unknown/unhandled event.
1 parent 10a043b commit 4e2ca30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

esp32/modnetwork.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,6 @@ static bool wifi_sta_connected = false;
113113
// This function is called by the system-event task and so runs in a different
114114
// thread to the main MicroPython task. It must not raise any Python exceptions.
115115
static esp_err_t event_handler(void *ctx, system_event_t *event) {
116-
ESP_LOGI("event_handler", "event %d", event->event_id);
117116
switch(event->event_id) {
118117
case SYSTEM_EVENT_STA_START:
119118
ESP_LOGI("wifi", "STA_START");
@@ -150,6 +149,7 @@ static esp_err_t event_handler(void *ctx, system_event_t *event) {
150149
break;
151150
}
152151
default:
152+
ESP_LOGI("wifi", "event %d", event->event_id);
153153
break;
154154
}
155155
return ESP_OK;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy