Option to disable fans during pause (#13820)

This commit is contained in:
InsanityAutomation
2019-05-04 16:50:44 -04:00
committed by Scott Lahteine
parent 66f7065248
commit 3fcab8dbf1
78 changed files with 86 additions and 3 deletions

View File

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