Skip to content

Commit 5afc404

Browse files
committed
tweak
1 parent fae7c0d commit 5afc404

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

Marlin/src/gcode/sd/M24_M25.cpp

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,11 @@
5858
*/
5959
void GcodeSuite::M24() {
6060
#if ENABLED(HEATER_IDLE_HANDLER) && PAUSE_PARK_NOZZLE_TIMEOUT
61-
// Re-enable the heaters if they timed out
62-
HOTEND_LOOP() {
63-
thermalManager.reset_hotend_idle_timer(e);
64-
}
65-
HOTEND_LOOP() {
66-
thermalManager.wait_for_hotend(e);
67-
}
61+
// Re-enable any timed-out heaters
62+
HOTEND_LOOP() thermalManager.reset_hotend_idle_timer(e);
63+
HOTEND_LOOP() thermalManager.wait_for_hotend(e);
6864
#endif
65+
6966
#if ALL(ADVANCED_PAUSE_FANS_PAUSE, HAS_FAN)
7067
thermalManager.set_fans_paused(false);
7168
#endif
@@ -141,6 +138,7 @@ void GcodeSuite::M25() {
141138
#if ALL(ADVANCED_PAUSE_FANS_PAUSE, HAS_FAN)
142139
thermalManager.set_fans_paused(true);
143140
#endif
141+
144142
#if ENABLED(HEATER_IDLE_HANDLER) && PAUSE_PARK_NOZZLE_TIMEOUT
145143
// Start the heater idle timers
146144
const millis_t nozzle_timeout = SEC_TO_MS(PAUSE_PARK_NOZZLE_TIMEOUT);

0 commit comments

Comments
 (0)