Skip to content

Commit

Permalink
Fix Hotend-abort-on-idle Check (#21535)
Browse files Browse the repository at this point in the history
  • Loading branch information
InsanityAutomation authored and thinkyhead committed Apr 4, 2021
1 parent e3a12c3 commit dda2f58
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Marlin/src/feature/hotend_idle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
#include "../module/temperature.h"
#include "../module/motion.h"
#include "../lcd/ultralcd.h"
#include "../module/planner.h"

extern HotendIdleProtection hotend_idle;

Expand All @@ -43,7 +44,8 @@ millis_t HotendIdleProtection::next_protect_ms = 0;
void HotendIdleProtection::check_hotends(const millis_t &ms) {
bool do_prot = false;
HOTEND_LOOP() {
if (thermalManager.degHotend(e) >= HOTEND_IDLE_MIN_TRIGGER) {
const bool busy = (TERN0(HAS_RESUME_CONTINUE, wait_for_user) || planner.has_blocks_queued());
if (thermalManager.degHotend(e) >= HOTEND_IDLE_MIN_TRIGGER && !busy) {
do_prot = true; break;
}
}
Expand Down

0 comments on commit dda2f58

Please sign in to comment.