enter alarm/halt state when encountering an invalid feedrate
authorJim Morris <morris@wolfman.com>
Fri, 8 Jul 2016 20:38:37 +0000 (13:38 -0700)
committerJim Morris <morris@wolfman.com>
Fri, 8 Jul 2016 20:38:37 +0000 (13:38 -0700)
src/modules/communication/GcodeDispatch.cpp

index 064c4cb..76a81a0 100644 (file)
@@ -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)