Fix M112 with Emergency Parser

This commit is contained in:
Scott Lahteine
2020-01-19 19:00:17 -06:00
parent 4dca6d50c0
commit 79c2f05e7d
4 changed files with 4 additions and 3 deletions

View File

@ -41,7 +41,7 @@ void GcodeSuite::M108() {
* M112: Full Shutdown
*/
void GcodeSuite::M112() {
kill(PSTR("M112 Shutdown"), nullptr, true);
kill(M112_KILL_STR, nullptr, true);
}
/**

View File

@ -440,7 +440,7 @@ void GCodeQueue::get_serial_commands() {
wait_for_user = false;
#endif
}
if (strcmp(command, "M112") == 0) kill();
if (strcmp(command, "M112") == 0) kill(M112_KILL_STR, nullptr, true);
if (strcmp(command, "M410") == 0) quickstop_stepper();
#endif