trapq: Use C99 method for declaring struct members in trapq_append()

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2019-11-07 11:32:53 -05:00
parent f63f68bbbb
commit 32f61b01e9
1 changed files with 2 additions and 2 deletions

View File

@ -28,8 +28,8 @@ trapq_append(struct trapq *tq, double print_time
, double axes_r_x, double axes_r_y, double axes_r_z , double axes_r_x, double axes_r_y, double axes_r_z
, double start_v, double cruise_v, double accel) , double start_v, double cruise_v, double accel)
{ {
struct coord start_pos = { x: start_pos_x, y: start_pos_y, z: start_pos_z }; struct coord start_pos = { .x=start_pos_x, .y=start_pos_y, .z=start_pos_z };
struct coord axes_r = { x: axes_r_x, y: axes_r_y, z: axes_r_z }; struct coord axes_r = { .x=axes_r_x, .y=axes_r_y, .z=axes_r_z };
if (accel_t) { if (accel_t) {
struct move *m = move_alloc(); struct move *m = move_alloc();
m->print_time = print_time; m->print_time = print_time;