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