Firmware: return now repeats last command again

Change-Id: I64fd6ffeb72d845c62ad55c5567c799b7f4690bf
This commit is contained in:
David Banks 2019-11-10 21:49:10 +00:00
parent d786c317fd
commit 396210caa8

View File

@ -547,13 +547,6 @@ readCmd(
Serial_TxByte0(c);
}
} else if (c == 13) {
// Handle return
#if defined(COMMAND_HISTORY)
cmd[i] = 0;
Serial_TxByte0(10);
Serial_TxByte0(13);
return 0;
#else
// Return repeats the previous command
if (i == 0) {
while (cmd[i]) {
@ -564,6 +557,9 @@ readCmd(
}
Serial_TxByte0(10);
Serial_TxByte0(13);
#if defined(COMMAND_HISTORY)
return 0;
#else
return;
#endif
} else if (c >= 32) {