소스 검색

heater_index above its use

Scott Lahteine 9 년 전
부모
커밋
b0f198c153
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2
    2
      Marlin/temperature.cpp

+ 2
- 2
Marlin/temperature.cpp 파일 보기

@@ -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…
취소
저장