projects
/
emu8051.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
a6ccc72
)
Do not display eror message when simply pressing return in CLI version
author
Hugo Villeneuve
<hugo@hugovil.com>
Sat, 25 Jan 2014 23:56:10 +0000
(18:56 -0500)
committer
Hugo Villeneuve
<hugo@hugovil.com>
Sat, 25 Jan 2014 23:56:10 +0000
(18:56 -0500)
Before was displaying message "Syntax error".
src/cli/emuconsole.c
patch
|
blob
|
history
diff --git
a/src/cli/emuconsole.c
b/src/cli/emuconsole.c
index
5dd93df
..
8cfbcae
100644
(file)
--- a/
src/cli/emuconsole.c
+++ b/
src/cli/emuconsole.c
@@
-323,6
+323,11
@@
console_main(void)
break;
}
+ if (strlen(line) == 0) {
+ /* Empty line, this is not an error. */
+ continue;
+ }
+
/* Keep only the Command part from the input line */
memcpy(Command, &line[0], Index);
Command[Index] = '\0';