Skip to content

Commit

Permalink
馃悰 Fix M140 print job timer autostart (MarlinFirmware#22046)
Browse files Browse the repository at this point in the history
  • Loading branch information
The-EG authored and thinkyhead committed Jun 5, 2021
1 parent 057302b commit 19521d1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Marlin/src/gcode/temp/M140_M190.cpp
Expand Up @@ -83,10 +83,11 @@ void GcodeSuite::M140_M190(const bool isM190) {

thermalManager.setTargetBed(temp);

TERN_(PRINTJOB_TIMER_AUTOSTART, thermalManager.auto_job_check_timer(true, false));

ui.set_status_P(thermalManager.isHeatingBed() ? GET_TEXT(MSG_BED_HEATING) : GET_TEXT(MSG_BED_COOLING));

// with PRINTJOB_TIMER_AUTOSTART, M190 can start the timer, and M140 can stop it
TERN_(PRINTJOB_TIMER_AUTOSTART, thermalManager.auto_job_check_timer(isM190, !isM190));

if (isM190)
thermalManager.wait_for_bed(no_wait_for_cooling);
}
Expand Down

0 comments on commit 19521d1

Please sign in to comment.