Apply HOTEND_INDEX in MILLISECONDS_PREHEAT_TIME

2.0.x
Scott Lahteine 9 years ago
parent 11dcbae7a2
commit bf9967c65d

@ -306,9 +306,9 @@ class Temperature {
#endif #endif
#ifdef MILLISECONDS_PREHEAT_TIME #ifdef MILLISECONDS_PREHEAT_TIME
if (celsius == 0.0f) if (celsius == 0.0f)
reset_preheat_time(hotend); reset_preheat_time(HOTEND_INDEX);
else if (target_temperature[hotend] == 0.0f) else if (target_temperature[HOTEND_INDEX] == 0.0f)
start_preheat_time(hotend); start_preheat_time(HOTEND_INDEX);
#endif #endif
target_temperature[HOTEND_INDEX] = celsius; target_temperature[HOTEND_INDEX] = celsius;
#if ENABLED(THERMAL_PROTECTION_HOTENDS) && WATCH_TEMP_PERIOD > 0 #if ENABLED(THERMAL_PROTECTION_HOTENDS) && WATCH_TEMP_PERIOD > 0

Loading…
Cancel
Save