From 6ad31d7fb714e0a4583ccd3cf0044e1ba8d7553a Mon Sep 17 00:00:00 2001 From: Thomas Kuschel Date: Fri, 16 Oct 2026 12:23:28 +0200 Subject: [PATCH] FIX new line after the unmuted debug logs (visual flow) --- src/cli.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cli.cpp b/src/cli.cpp index fcbb236..12bdceb 100644 --- a/src/cli.cpp +++ b/src/cli.cpp @@ -19,7 +19,7 @@ static uint32_t current_mute_time_sec = Config::DEFAULT_MUTE_TIME_SEC; static void log_restore_timer_callback(TimerHandle_t xTimer) { // Print a clean new prompt since logs might have disrupted the visual flow - printf("\r\n[System] Debug logs unmuted after %lu seconds of inactivity. \r\n%s # ", + printf("\r\n[System] Debug logs unmuted after %lu seconds of inactivity. \r\n%s #\r\n", (unsigned long)current_mute_time_sec, Config::PROJECT_TITLE); fflush(stdout); @@ -137,8 +137,8 @@ void start_cli_task(void) { // Dynamically initialize the timer with the variable interval using milliseconds conversion silence_timer = xTimerCreate( "MuteTimer", - pdMS_TO_TICKS(current_mute_time_sec * 1000), - pdFALSE, + pdMS_TO_TICKS(current_mute_time_sec * 1000), + pdFALSE, nullptr, log_restore_timer_callback );