Temperature 'autostart' => 'auto_job'
This commit is contained in:
		@@ -105,7 +105,7 @@ void GcodeSuite::M104() {
 | 
			
		||||
       * mode, for instance in a dual extruder setup, without affecting the running
 | 
			
		||||
       * print timer.
 | 
			
		||||
       */
 | 
			
		||||
      thermalManager.check_timer_autostart(false, true);
 | 
			
		||||
      thermalManager.auto_job_check_timer(false, true);
 | 
			
		||||
    #endif
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
@@ -182,7 +182,7 @@ void GcodeSuite::M109() {
 | 
			
		||||
       * standby mode, (e.g., in a dual extruder setup) without affecting
 | 
			
		||||
       * the running print timer.
 | 
			
		||||
       */
 | 
			
		||||
      thermalManager.check_timer_autostart(true, true);
 | 
			
		||||
      thermalManager.auto_job_check_timer(true, true);
 | 
			
		||||
    #endif
 | 
			
		||||
 | 
			
		||||
    #if HAS_DISPLAY
 | 
			
		||||
 
 | 
			
		||||
@@ -81,7 +81,7 @@ void GcodeSuite::M140() {
 | 
			
		||||
       * temperatures need to be set below mintemp. Order of M140, M104, and M141
 | 
			
		||||
       * at the end of the print does not matter.
 | 
			
		||||
       */
 | 
			
		||||
      thermalManager.check_timer_autostart(false, true);
 | 
			
		||||
      thermalManager.auto_job_check_timer(false, true);
 | 
			
		||||
    #endif
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
@@ -128,7 +128,7 @@ void GcodeSuite::M190() {
 | 
			
		||||
 | 
			
		||||
  thermalManager.setTargetBed(temp);
 | 
			
		||||
 | 
			
		||||
  TERN_(PRINTJOB_TIMER_AUTOSTART, thermalManager.check_timer_autostart(true, false));
 | 
			
		||||
  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));
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -60,7 +60,7 @@ void GcodeSuite::M141() {
 | 
			
		||||
       * temperatures need to be set below mintemp. Order of M140, M104, and M141
 | 
			
		||||
       * at the end of the print does not matter.
 | 
			
		||||
       */
 | 
			
		||||
      thermalManager.check_timer_autostart(false, true);
 | 
			
		||||
      thermalManager.auto_job_check_timer(false, true);
 | 
			
		||||
    #endif
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
@@ -75,7 +75,7 @@ void GcodeSuite::M191() {
 | 
			
		||||
  const bool no_wait_for_cooling = parser.seenval('S');
 | 
			
		||||
  if (no_wait_for_cooling || parser.seenval('R')) {
 | 
			
		||||
    thermalManager.setTargetChamber(parser.value_celsius());
 | 
			
		||||
    TERN_(PRINTJOB_TIMER_AUTOSTART, thermalManager.check_timer_autostart(true, false));
 | 
			
		||||
    TERN_(PRINTJOB_TIMER_AUTOSTART, thermalManager.auto_job_check_timer(true, false));
 | 
			
		||||
  }
 | 
			
		||||
  else return;
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user