Change the serial log to display only milliseconds
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
apio 2022-12-06 19:31:41 +01:00
parent 39b310b6b9
commit 314acbfe21
Signed by: apio
GPG Key ID: B8A7D06E42258954

View File

@ -25,7 +25,7 @@ static Result<void> log_serial(LogLevel level, const char* format, va_list origi
TRY(Serial::printf("\x1b[%sm%c\x1b[0m ", ansi_color_codes_per_log_level[(int)level], TRY(Serial::printf("\x1b[%sm%c\x1b[0m ", ansi_color_codes_per_log_level[(int)level],
log_level_letters[(int)level])); log_level_letters[(int)level]));
TRY(Serial::printf("[%6zu.%.6zu] ", Timer::ticks(), Timer::ticks_us() - (Timer::ticks() * 1000000))); TRY(Serial::printf("%4zu.%.3zu ", Timer::ticks(), Timer::ticks_ms() - (Timer::ticks() * 1000)));
TRY(cstyle_format( TRY(cstyle_format(
format, format,