From 35e3c8f314d86813518fd3e36aca83397d98b239 Mon Sep 17 00:00:00 2001 From: David Banks Date: Sat, 9 Nov 2019 14:12:17 +0000 Subject: [PATCH] Firmware: Use ESC [ K to blank line Change-Id: I055057a1b6a17644198bc3f7f3b22d9fd8f19570 --- firmware/AtomBusMon.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/firmware/AtomBusMon.c b/firmware/AtomBusMon.c index 7cc1d33..47bc508 100644 --- a/firmware/AtomBusMon.c +++ b/firmware/AtomBusMon.c @@ -557,14 +557,12 @@ void readCmd(char *cmd) { #if defined(COMMAND_HISTORY) // Wipe out the last command Serial_TxByte0(13); - for (i = 0; i < 32; i++) { - Serial_TxByte0(32); - } - Serial_TxByte0(13); + Serial_TxByte0(27); + Serial_TxByte0('['); + Serial_TxByte0('K'); #endif logstr(">> "); #if defined(COMMAND_HISTORY) - i = 0; if (reuse) { while (cmd[i]) { Serial_TxByte0(cmd[i++]);