🐛 Fix manage_heaters recursion on servo move (#22313)

Followup to e297748b22
This commit is contained in:
Katelyn Schiesser 2021-07-08 21:48:11 -07:00 committed by Scott Lahteine
parent 304a926b0a
commit e9a1c10b34

View File

@ -1203,6 +1203,10 @@ void Temperature::min_temp_error(const heater_id_t heater_id) {
void Temperature::manage_heater() { void Temperature::manage_heater() {
if (marlin_state == MF_INITIALIZING) return watchdog_refresh(); // If Marlin isn't started, at least reset the watchdog! if (marlin_state == MF_INITIALIZING) return watchdog_refresh(); // If Marlin isn't started, at least reset the watchdog!
static bool no_reentry = false; // Prevent recursion
if (no_reentry) return;
REMEMBER(mh, no_reentry, true);
#if ENABLED(EMERGENCY_PARSER) #if ENABLED(EMERGENCY_PARSER)
if (emergency_parser.killed_by_M112) kill(M112_KILL_STR, nullptr, true); if (emergency_parser.killed_by_M112) kill(M112_KILL_STR, nullptr, true);