mirror of
https://github.com/hoglet67/AtomBusMon.git
synced 2024-09-27 18:56:28 +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);
|
Serial_TxByte0(c);
|
||||||
}
|
}
|
||||||
} else if (c == 13) {
|
} 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
|
// Return repeats the previous command
|
||||||
if (i == 0) {
|
if (i == 0) {
|
||||||
while (cmd[i]) {
|
while (cmd[i]) {
|
||||||
@ -564,6 +557,9 @@ readCmd(
|
|||||||
}
|
}
|
||||||
Serial_TxByte0(10);
|
Serial_TxByte0(10);
|
||||||
Serial_TxByte0(13);
|
Serial_TxByte0(13);
|
||||||
|
#if defined(COMMAND_HISTORY)
|
||||||
|
return 0;
|
||||||
|
#else
|
||||||
return;
|
return;
|
||||||
#endif
|
#endif
|
||||||
} else if (c >= 32) {
|
} else if (c >= 32) {
|
||||||
|
Loading…
Reference in New Issue
Block a user