Browse Source

🐛 Fix M140 print job timer autostart (#22046)

vanilla_fb_2.0.x
Taylor Talkington 3 years ago
committed by Scott Lahteine
parent
commit
19521d16cd
  1. 5
      Marlin/src/gcode/temp/M140_M190.cpp

5
Marlin/src/gcode/temp/M140_M190.cpp

@ -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);
}

Loading…
Cancel
Save