Fix: M112 calling kill from interrupt (#9923)

Fix #9906
This commit is contained in:
Scott Lahteine
2018-03-03 23:14:01 -06:00
committed by GitHub
parent c37b3f995a
commit 649f375494
5 changed files with 18 additions and 2 deletions

View File

@ -750,6 +750,10 @@ void Temperature::manage_heater() {
static bool last_pause_state;
#endif
#if ENABLED(EMERGENCY_PARSER)
if (killed_by_M112) kill(PSTR(MSG_KILLED));
#endif
if (!temp_meas_ready) return;
updateTemperaturesFromRawValues(); // also resets the watchdog