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:
f967a81
)
enter alarm/halt state when encountering an invalid feedrate
author
Jim Morris
<morris@wolfman.com>
Fri, 8 Jul 2016 20:38:37 +0000
(13:38 -0700)
committer
Jim Morris
<morris@wolfman.com>
Fri, 8 Jul 2016 20:38:37 +0000
(13:38 -0700)
src/modules/communication/GcodeDispatch.cpp
patch
|
blob
|
blame
|
history
diff --git
a/src/modules/communication/GcodeDispatch.cpp
b/src/modules/communication/GcodeDispatch.cpp
index
064c4cb
..
76a81a0
100644
(file)
--- a/
src/modules/communication/GcodeDispatch.cpp
+++ b/
src/modules/communication/GcodeDispatch.cpp
@@
-356,6
+356,10
@@
try_again:
new_message.stream->printf("unknown\r\n");
}
+ // we cannot continue safely after an error so we enter HALT state
+ new_message.stream->printf("Entering Alarm/Halt state\n");
+ THEKERNEL->call_event(ON_HALT, nullptr);
+
}else{
if(gcode->add_nl)