Sfoglia il codice sorgente

Fix some of array initializations

- In `stepper.h` init `count_direction` array
- In `ultralcd.cpp` init `autotune_temp` array
Scott Lahteine 8 anni fa
parent
commit
dc22097b3a
2 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 1
    1
      Marlin/stepper.h
  2. 1
    1
      Marlin/ultralcd.cpp

+ 1
- 1
Marlin/stepper.h Vedi File

@@ -139,7 +139,7 @@ class Stepper {
139 139
     //
140 140
     // Current direction of stepper motors (+1 or -1)
141 141
     //
142
-    volatile signed char count_direction[NUM_AXIS] = { 1 };
142
+    volatile signed char count_direction[NUM_AXIS] = { 1, 1, 1, 1 };
143 143
 
144 144
   public:
145 145
 

+ 1
- 1
Marlin/ultralcd.cpp Vedi File

@@ -1369,7 +1369,7 @@ static void lcd_control_menu() {
1369 1369
 #if ENABLED(PID_AUTOTUNE_MENU)
1370 1370
 
1371 1371
   #if ENABLED(PIDTEMP)
1372
-    int autotune_temp[EXTRUDERS] = { 150 };
1372
+    int autotune_temp[EXTRUDERS] = ARRAY_BY_EXTRUDERS1(150);
1373 1373
     const int heater_maxtemp[EXTRUDERS] = ARRAY_BY_EXTRUDERS(HEATER_0_MAXTEMP, HEATER_1_MAXTEMP, HEATER_2_MAXTEMP, HEATER_3_MAXTEMP);
1374 1374
   #endif
1375 1375
 

Loading…
Annulla
Salva