diff --git a/g2core/cycle_jogging.cpp b/g2core/cycle_jogging.cpp index e9e4251b..e9571576 100644 --- a/g2core/cycle_jogging.cpp +++ b/g2core/cycle_jogging.cpp @@ -177,8 +177,8 @@ static stat_t _jogging_axis_ramp_jog(int8_t axis) // run the jog ramp } static stat_t _jogging_axis_move(int8_t axis, float target, float velocity) { - float vect[] = {0, 0, 0, 0, 0, 0}; - bool flags[] = {false, false, false, false, false, false}; + float vect[] = { 0,0,0,0,0,0 }; + bool flags[] = { false,false,false,false,false,false }; vect[axis] = target; flags[axis] = true; diff --git a/g2core/plan_line.cpp b/g2core/plan_line.cpp index 7378b3e4..860da6ca 100644 --- a/g2core/plan_line.cpp +++ b/g2core/plan_line.cpp @@ -143,8 +143,8 @@ bool mp_runtime_is_idle() { return (!st_runtime_isbusy()); } stat_t mp_aline(GCodeState_t* _gm) { - float target_rotated[AXES] = { 0,0,0,0,0,0,0,0,0 }; - float axis_square[AXES] = { 0,0,0,0,0,0,0,0,0 }; + float target_rotated[AXES]; // all these arrays initialize to all zeroes by compiler settings + float axis_square[AXES]; float axis_length[AXES]; bool flags[AXES]; float length_square = 0;