Sfoglia il codice sorgente

Apply HOTEND_INDEX in MILLISECONDS_PREHEAT_TIME

Scott Lahteine 9 anni fa
parent
commit
bf9967c65d
1 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  1. 3
    3
      Marlin/temperature.h

+ 3
- 3
Marlin/temperature.h Vedi 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…
Annulla
Salva