Fix: M112 calling kill from interrupt (#9922)

Fix #9906
This commit is contained in:
Scott Lahteine 2018-03-03 23:13:53 -06:00 committed by GitHub
parent 7450b7c36e
commit b6fa55aa37
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 17 additions and 8 deletions

View file

@ -80,6 +80,8 @@
#if ENABLED(EMERGENCY_PARSER)
bool killed_by_M112; // = false
#include "stepper.h"
#include "language.h"
@ -155,7 +157,7 @@
wait_for_user = wait_for_heatup = false;
break;
case state_M112:
kill(PSTR(MSG_KILLED));
killed_by_M112 = true;
break;
case state_M410:
quickstop_stepper();