Skip to content

Commit 19521d1

Browse files
The-EGthinkyhead
authored andcommitted
🐛 Fix M140 print job timer autostart (MarlinFirmware#22046)
1 parent 057302b commit 19521d1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Marlin/src/gcode/temp/M140_M190.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,11 @@ void GcodeSuite::M140_M190(const bool isM190) {
8383

8484
thermalManager.setTargetBed(temp);
8585

86-
TERN_(PRINTJOB_TIMER_AUTOSTART, thermalManager.auto_job_check_timer(true, false));
87-
8886
ui.set_status_P(thermalManager.isHeatingBed() ? GET_TEXT(MSG_BED_HEATING) : GET_TEXT(MSG_BED_COOLING));
8987

88+
// with PRINTJOB_TIMER_AUTOSTART, M190 can start the timer, and M140 can stop it
89+
TERN_(PRINTJOB_TIMER_AUTOSTART, thermalManager.auto_job_check_timer(isM190, !isM190));
90+
9091
if (isM190)
9192
thermalManager.wait_for_bed(no_wait_for_cooling);
9293
}

0 commit comments

Comments
 (0)