Fix some of array initializations

- In `stepper.h` init `count_direction` array
- In `ultralcd.cpp` init `autotune_temp` array
This commit is contained in:
Scott Lahteine 2016-05-29 20:55:13 -07:00
parent fe3122774a
commit dc22097b3a
2 changed files with 2 additions and 2 deletions

View file

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

View file

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