Hotend Idle Timeout (#16362)

This commit is contained in:
Italo Soares
2020-05-18 02:50:35 -03:00
committed by GitHub
parent 6e01079b48
commit 213d4b890e
8 changed files with 157 additions and 2 deletions

View File

@@ -159,6 +159,10 @@
#include "feature/runout.h"
#endif
#if ENABLED(HOTEND_IDLE_TIMEOUT)
#include "feature/hotend_idle.h"
#endif
#if ENABLED(TEMP_STAT_LEDS)
#include "feature/leds/tempstat.h"
#endif
@@ -527,6 +531,8 @@ inline void manage_inactivity(const bool ignore_stepper_queue=false) {
TERN_(AUTO_POWER_CONTROL, powerManager.check());
TERN_(HOTEND_IDLE_TIMEOUT, hotend_idle.check());
#if ENABLED(EXTRUDER_RUNOUT_PREVENT)
if (thermalManager.degHotend(active_extruder) > EXTRUDER_RUNOUT_MINTEMP
&& ELAPSED(ms, gcode.previous_move_ms + SEC_TO_MS(EXTRUDER_RUNOUT_SECONDS))