Skip to content

Commit

Permalink
esp32/main: Don't call usocket_events_deinit if unavailable.
Browse files Browse the repository at this point in the history
usocket_events_deinit will only be available if MICROPY_PY_USOCKET_EVENTS
is enabled (which is only enabled when webrepl is enabled).

Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
  • Loading branch information
jimmo authored and dpgeorge committed Dec 14, 2022
1 parent 3a37390 commit 9bec52a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ports/esp32/main.c
Expand Up @@ -215,7 +215,9 @@ void mp_task(void *pvParameter) {
// TODO: machine_rmt_deinit_all();
machine_pins_deinit();
machine_deinit();
#if MICROPY_PY_USOCKET_EVENTS
usocket_events_deinit();
#endif

mp_deinit();
fflush(stdout);
Expand Down

0 comments on commit 9bec52a

Please sign in to comment.