From 7dbf9a9b56eb37b974e75cc10156bb3ec4ce0e8b Mon Sep 17 00:00:00 2001 From: Jeff Epler Date: Wed, 30 Aug 2023 11:34:01 -0500 Subject: [PATCH] fix vprintf_adapter build error --- ports/espressif/supervisor/port.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ports/espressif/supervisor/port.c b/ports/espressif/supervisor/port.c index e9f23de99b..37d67595ee 100644 --- a/ports/espressif/supervisor/port.c +++ b/ports/espressif/supervisor/port.c @@ -541,11 +541,11 @@ void port_post_boot_py(bool heap_valid) { } +#if CIRCUITPY_CONSOLE_UART static int vprintf_adapter(const char *fmt, va_list ap) { return mp_vprintf(&mp_plat_print, fmt, ap); } -#if CIRCUITPY_CONSOLE_UART void port_serial_early_init(void) { esp_log_set_vprintf(vprintf_adapter); }