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:
789e410
)
return ok on an uppercase non command word
author
Jim Morris
<morris@wolfman.com>
Fri, 11 May 2018 21:48:17 +0000
(22:48 +0100)
committer
Jim Morris
<morris@wolfman.com>
Fri, 11 May 2018 21:48:17 +0000
(22:48 +0100)
src/modules/communication/GcodeDispatch.cpp
patch
|
blob
|
blame
|
history
diff --git
a/src/modules/communication/GcodeDispatch.cpp
b/src/modules/communication/GcodeDispatch.cpp
index
fbb2efb
..
b6b84d8
100644
(file)
--- a/
src/modules/communication/GcodeDispatch.cpp
+++ b/
src/modules/communication/GcodeDispatch.cpp
@@
-468,9
+468,13
@@
try_again:
possible_command.insert(0, buf);
goto try_again;
possible_command.insert(0, buf);
goto try_again;
- // Ignore comments and blank lines
} else if ( first_char == ';' || first_char == '(' || first_char == ' ' || first_char == '\n' || first_char == '\r' ) {
} else if ( first_char == ';' || first_char == '(' || first_char == ' ' || first_char == '\n' || first_char == '\r' ) {
- new_message.stream->printf("ok\r\n");
+ // Ignore comments and blank lines
+ new_message.stream->printf("ok\n");
+
+ } else {
+ // an uppercase non command word on its own (except XYZF) just returns ok, we could add an error but no hosts expect that.
+ new_message.stream->printf("ok - ignored\n");
}
}
}
}