Browse Source

Apply HOTEND_INDEX in MILLISECONDS_PREHEAT_TIME

Scott Lahteine 9 years ago
parent
commit
bf9967c65d
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      Marlin/temperature.h

+ 3
- 3
Marlin/temperature.h View File

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

Loading…
Cancel
Save