aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/chelper/itersolve.c
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2019-10-29 12:44:39 -0400
committerKevin O'Connor <kevin@koconnor.net>2019-11-06 15:51:51 -0500
commit1acaaa98c21af0a2a2cff725365dfda0ff4b7204 (patch)
tree601ce8a29fb24f7b4b83368c120c386563d2ff1b /klippy/chelper/itersolve.c
parent797dcfcb1218194077d37dd53575c19c4af710c5 (diff)
downloadkutter-1acaaa98c21af0a2a2cff725365dfda0ff4b7204.tar.gz
kutter-1acaaa98c21af0a2a2cff725365dfda0ff4b7204.tar.xz
kutter-1acaaa98c21af0a2a2cff725365dfda0ff4b7204.zip
trapq: Remove move_fill()
Now that all callers use the trapq system to queue moves, it is no longer necessary to individually allocate and fill a 'struct move'. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/chelper/itersolve.c')
-rw-r--r--klippy/chelper/itersolve.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/klippy/chelper/itersolve.c b/klippy/chelper/itersolve.c
index eeb107ab..c86b35e3 100644
--- a/klippy/chelper/itersolve.c
+++ b/klippy/chelper/itersolve.c
@@ -215,7 +215,9 @@ itersolve_calc_position_from_coord(struct stepper_kinematics *sk
{
struct move m;
memset(&m, 0, sizeof(m));
- move_fill(&m, 0., 0., 1., 0., x, y, z, 0., 1., 0., 0., 1., 0.);
+ m.start_pos.x = x;
+ m.start_pos.y = y;
+ m.start_pos.z = z;
return sk->calc_position_cb(sk, &m, 0.);
}