fix vprintf_adapter build error

This commit is contained in:
Jeff Epler 2023-08-30 11:34:01 -05:00
parent 9dcc0b5056
commit 7dbf9a9b56
No known key found for this signature in database
GPG Key ID: D5BF15AB975AB4DE

View File

@ -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);
}