Browse Source

Fix Hotend-abort-on-idle Check (#21535)

InsanityAutomation 4 years ago
parent
commit
c4b69fcddd
No account linked to committer's email address
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      Marlin/src/feature/hotend_idle.cpp

+ 3
- 1
Marlin/src/feature/hotend_idle.cpp View File

@@ -34,6 +34,7 @@
34 34
 
35 35
 #include "../module/temperature.h"
36 36
 #include "../module/motion.h"
37
+#include "../module/planner.h"
37 38
 #include "../lcd/marlinui.h"
38 39
 
39 40
 extern HotendIdleProtection hotend_idle;
@@ -43,7 +44,8 @@ millis_t HotendIdleProtection::next_protect_ms = 0;
43 44
 void HotendIdleProtection::check_hotends(const millis_t &ms) {
44 45
   bool do_prot = false;
45 46
   HOTEND_LOOP() {
46
-    if (thermalManager.degHotend(e) >= HOTEND_IDLE_MIN_TRIGGER) {
47
+    const bool busy = (TERN0(HAS_RESUME_CONTINUE, wait_for_user) || planner.has_blocks_queued());
48
+    if (thermalManager.degHotend(e) >= HOTEND_IDLE_MIN_TRIGGER && !busy) {
47 49
       do_prot = true; break;
48 50
     }
49 51
   }

Loading…
Cancel
Save