HCoop
/
clinton
/
Smoothieware.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b67fec4
)
ignore any line that starts with ok
author
Jim Morris
<morris@wolfman.com>
Wed, 3 Oct 2018 17:49:15 +0000
(18:49 +0100)
committer
Jim Morris
<morris@wolfman.com>
Wed, 3 Oct 2018 17:49:15 +0000
(18:49 +0100)
src/modules/utils/simpleshell/SimpleShell.cpp
patch
|
blob
|
blame
|
history
diff --git
a/src/modules/utils/simpleshell/SimpleShell.cpp
b/src/modules/utils/simpleshell/SimpleShell.cpp
index
b11f031
..
67e7014
100644
(file)
--- a/
src/modules/utils/simpleshell/SimpleShell.cpp
+++ b/
src/modules/utils/simpleshell/SimpleShell.cpp
@@
-275,9
+275,9
@@
void SimpleShell::on_console_line_received( void *argument )
} else if (cmd == "fire") {
// these are handled by Laser module
- } else if (cmd == "ok") {
- // probably an echo so
reply ok
- new_message.stream->printf("ok\n");
+ } else if (cmd
.substr(0, 2)
== "ok") {
+ // probably an echo so
ignore the whole line
+
//
new_message.stream->printf("ok\n");
}else if(!parse_command(cmd.c_str(), possible_command, new_message.stream)) {
new_message.stream->printf("error:Unsupported command - %s\n", cmd.c_str());