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

View File

@ -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

View File

@ -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