Skip to content

Commit e08a83a

Browse files
committed
Use ets_write_char_uart instead of ets_printf in log_printfv
1 parent 645d5ce commit e08a83a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Diff for: cores/esp32/esp32-hal-uart.c

+5-2
Original file line numberDiff line numberDiff line change
@@ -659,8 +659,11 @@ int log_printfv(const char *format, va_list arg)
659659
}
660660
#endif
661661

662-
vsnprintf(temp, len+1, format, arg);
663-
ets_printf("%s", temp);
662+
int wlen = vsnprintf(temp, len+1, format, arg);
663+
//ets_printf("%s", temp);
664+
for (int i = 0; i < wlen; i++) {
665+
ets_write_char_uart(temp[i]);
666+
}
664667

665668
#if !CONFIG_DISABLE_HAL_LOCKS
666669
if(s_uart_debug_nr != -1 && _uart_bus_array[s_uart_debug_nr].lock){

0 commit comments

Comments
 (0)