Browse Source

Fix some of array initializations

- In `stepper.h` init `count_direction` array
- In `ultralcd.cpp` init `autotune_temp` array
Scott Lahteine 8 years ago
parent
commit
dc22097b3a
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      Marlin/stepper.h
  2. 1
    1
      Marlin/ultralcd.cpp

+ 1
- 1
Marlin/stepper.h View File

139
     //
139
     //
140
     // Current direction of stepper motors (+1 or -1)
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
   public:
144
   public:
145
 
145
 

+ 1
- 1
Marlin/ultralcd.cpp View File

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

Loading…
Cancel
Save