Fix Hotend Idle Timeout trigger (#18657)

This commit is contained in:
Keith Bennett 2020-07-15 00:46:04 -07:00 committed by GitHub
parent ef90cb7c97
commit 246eac0c82
Signed by: GitHub
GPG key ID: 4AEE18F83AFDEB23

View file

@ -43,7 +43,7 @@ millis_t HotendIdleProtection::next_protect_ms = 0;
void HotendIdleProtection::check_hotends(const millis_t &ms) { void HotendIdleProtection::check_hotends(const millis_t &ms) {
bool do_prot = false; bool do_prot = false;
HOTEND_LOOP() { HOTEND_LOOP() {
if (thermalManager.degHotendNear(e, HOTEND_IDLE_MIN_TRIGGER)) { if (thermalManager.degHotend(active_extruder) >= HOTEND_IDLE_MIN_TRIGGER) {
do_prot = true; break; do_prot = true; break;
} }
} }