Option to disable fans during pause (#13820)
This commit is contained in:
		
				
					committed by
					
						
						Scott Lahteine
					
				
			
			
				
	
			
			
			
						parent
						
							66f7065248
						
					
				
				
					commit
					3fcab8dbf1
				
			@@ -1365,6 +1365,7 @@
 | 
			
		||||
                                                  //   Filament can be extruded repeatedly from the Filament Change menu
 | 
			
		||||
                                                  //   until extrusion is consistent, and to purge old filament.
 | 
			
		||||
  #define ADVANCED_PAUSE_RESUME_PRIME          0  // (mm) Extra distance to prime nozzle after returning from park.
 | 
			
		||||
  //#define ADVANCED_PAUSE_FANS_PAUSE             // Turn off print-cooling fans while the machine is paused.
 | 
			
		||||
 | 
			
		||||
                                                  // Filament Unload does a Retract, Delay, and Purge first:
 | 
			
		||||
  #define FILAMENT_UNLOAD_RETRACT_LENGTH      13  // (mm) Unload initial retract length.
 | 
			
		||||
 
 | 
			
		||||
@@ -424,6 +424,10 @@ bool pause_print(const float &retract, const point_t &park_point, const float &u
 | 
			
		||||
  // Wait for buffered blocks to complete
 | 
			
		||||
  planner.synchronize();
 | 
			
		||||
 | 
			
		||||
  #if ENABLED(ADVANCED_PAUSE_FANS_PAUSE) && FAN_COUNT > 0
 | 
			
		||||
    thermalManager.set_fans_paused(true);
 | 
			
		||||
  #endif
 | 
			
		||||
 | 
			
		||||
  // Initial retract before move to filament change position
 | 
			
		||||
  if (retract && thermalManager.hotEnoughToExtrude(active_extruder))
 | 
			
		||||
    do_pause_e_move(retract, PAUSE_PARK_RETRACT_FEEDRATE);
 | 
			
		||||
@@ -660,6 +664,10 @@ void resume_print(const float &slow_load_length/*=0*/, const float &fast_load_le
 | 
			
		||||
    }
 | 
			
		||||
  #endif
 | 
			
		||||
 | 
			
		||||
  #if ENABLED(ADVANCED_PAUSE_FANS_PAUSE) && FAN_COUNT > 0
 | 
			
		||||
    thermalManager.set_fans_paused(false);
 | 
			
		||||
  #endif
 | 
			
		||||
 | 
			
		||||
  // Resume the print job timer if it was running
 | 
			
		||||
  if (print_job_timer.isPaused()) print_job_timer.start();
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -174,7 +174,7 @@ hotend_info_t Temperature::temp_hotend[HOTENDS]; // = { 0 }
 | 
			
		||||
    #endif
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  #if ENABLED(PROBING_FANS_OFF)
 | 
			
		||||
  #if EITHER(PROBING_FANS_OFF, ADVANCED_PAUSE_FANS_PAUSE)
 | 
			
		||||
 | 
			
		||||
    void Temperature::set_fans_paused(const bool p) {
 | 
			
		||||
      static uint8_t saved_fan_speed[FAN_COUNT]; // = { 0 }
 | 
			
		||||
@@ -187,7 +187,7 @@ hotend_info_t Temperature::temp_hotend[HOTENDS]; // = { 0 }
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
  #endif // PROBING_FANS_OFF
 | 
			
		||||
  #endif
 | 
			
		||||
 | 
			
		||||
#endif // FAN_COUNT > 0
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -448,7 +448,7 @@ class Temperature {
 | 
			
		||||
 | 
			
		||||
      #endif // HAS_LCD_MENU
 | 
			
		||||
 | 
			
		||||
      #if ENABLED(PROBING_FANS_OFF)
 | 
			
		||||
      #if EITHER(PROBING_FANS_OFF, ADVANCED_PAUSE_FANS_PAUSE)
 | 
			
		||||
        void set_fans_paused(const bool p);
 | 
			
		||||
      #endif
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user