Skip to content

Commit 7dbf9a9

Browse files
committed
fix vprintf_adapter build error
1 parent 9dcc0b5 commit 7dbf9a9

File tree

1 file changed

+1
-1
lines changed
  • ports/espressif/supervisor

1 file changed

+1
-1
lines changed

ports/espressif/supervisor/port.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -541,11 +541,11 @@ void port_post_boot_py(bool heap_valid) {
541541
}
542542

543543

544+
#if CIRCUITPY_CONSOLE_UART
544545
static int vprintf_adapter(const char *fmt, va_list ap) {
545546
return mp_vprintf(&mp_plat_print, fmt, ap);
546547
}
547548

548-
#if CIRCUITPY_CONSOLE_UART
549549
void port_serial_early_init(void) {
550550
esp_log_set_vprintf(vprintf_adapter);
551551
}

0 commit comments

Comments
 (0)