Fix #9906
@ -81,6 +81,8 @@
#if ENABLED(EMERGENCY_PARSER)
bool killed_by_M112; // = false
#include "../../module/stepper.h"
// Currently looking for: M108, M112, M410
@ -155,7 +157,7 @@
wait_for_user = wait_for_heatup = false;
break;
case state_M112:
kill(PSTR(MSG_KILLED));
killed_by_M112 = true;
case state_M410:
quickstop_stepper();
@ -94,6 +94,10 @@
extern ring_buffer_pos_t rx_max_enqueued;
#endif
extern bool killed_by_M112;
class MarlinSerial { //: public Stream
public:
@ -108,6 +108,8 @@
// If you alter the parser please don't forget to update the capabilities in Conditionals_post.h
@ -180,7 +182,7 @@
@ -74,6 +74,10 @@
class MarlinSerial {
@ -750,6 +750,10 @@ void Temperature::manage_heater() {
static bool last_pause_state;
if (killed_by_M112) kill(PSTR(MSG_KILLED));
if (!temp_meas_ready) return;
updateTemperaturesFromRawValues(); // also resets the watchdog