Sfoglia il codice sorgente

heater_index above its use

Scott Lahteine 9 anni fa
parent
commit
b0f198c153
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2
    2
      Marlin/temperature.cpp

+ 2
- 2
Marlin/temperature.cpp Vedi File

@@ -1023,12 +1023,12 @@ void setWatch() {
1023 1023
         SERIAL_EOL;
1024 1024
     */
1025 1025
 
1026
+    int heater_index = heater_id >= 0 ? heater_id : EXTRUDERS;
1027
+
1026 1028
     // If the target temperature changes, restart
1027 1029
     if (tr_target_temperature[heater_index] != target_temperature)
1028 1030
       *state = TRReset;
1029 1031
 
1030
-    int heater_index = heater_id >= 0 ? heater_id : EXTRUDERS;
1031
-
1032 1032
     switch (*state) {
1033 1033
       case TRReset:
1034 1034
         *timer = 0;

Loading…
Annulla
Salva