From cf52ba9315275ed8efcf09adcbe64666b3277ac4 Mon Sep 17 00:00:00 2001 From: Chirag Bansal Date: Thu, 2 Nov 2023 13:16:59 +0530 Subject: [PATCH] handling the garbage data on the uart --- src/lib/shell/MainLoopSilabs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/shell/MainLoopSilabs.cpp b/src/lib/shell/MainLoopSilabs.cpp index 9cb5dfed0bd586..7c391f1a89d9ba 100644 --- a/src/lib/shell/MainLoopSilabs.cpp +++ b/src/lib/shell/MainLoopSilabs.cpp @@ -118,8 +118,8 @@ void ReadLine(char * buffer, size_t max) if (isprint(static_cast(buffer[line_sz])) || buffer[line_sz] == '\t') { streamer_printf(streamer_get(), "%c", buffer[line_sz]); - line_sz++; } + line_sz++; break; } }