1
0
mirror of https://github.com/MarlinFirmware/Marlin.git synced 2024-11-23 12:04:19 +00:00

Fix check_hotends with > 1 hotend

This commit is contained in:
Scott Lahteine 2020-07-16 22:30:36 -05:00
parent 9424567189
commit 6dd2b1210f

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.degHotend(active_extruder) >= HOTEND_IDLE_MIN_TRIGGER) { if (thermalManager.degHotend(e) >= HOTEND_IDLE_MIN_TRIGGER) {
do_prot = true; break; do_prot = true; break;
} }
} }