mirror of
https://github.com/hoglet67/AtomBusMon.git
synced 2025-02-07 02:30:53 +00:00
Firmware: return now repeats last command again
Change-Id: I64fd6ffeb72d845c62ad55c5567c799b7f4690bf
This commit is contained in:
parent
d786c317fd
commit
396210caa8
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user