1
0
mirror of https://github.com/MarlinFirmware/Marlin.git synced 2024-11-27 13:56:24 +00:00

🐛 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 GitHub
parent 2fa24a637d
commit 79405ce2af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1236,6 +1236,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);