From e082ab744d886ff51754428a34d6e3fe0af3c00c Mon Sep 17 00:00:00 2001 From: John Stockdale Date: Fri, 6 Dec 2024 23:02:22 -0800 Subject: [PATCH] move decrement down here --- esp32_marauder/CommandLine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esp32_marauder/CommandLine.cpp b/esp32_marauder/CommandLine.cpp index d657e7160..2f779c74b 100644 --- a/esp32_marauder/CommandLine.cpp +++ b/esp32_marauder/CommandLine.cpp @@ -41,8 +41,8 @@ String CommandLine::getSerialInput() { } else { serial_buffer[j-1] = serial_buffer[j]; } - serial_buffer_idx--; } + serial_buffer_idx--; } Serial.print(serial_buffer[i]); }