diff options
author | Dmitry Butyugin <dmbutyugin@google.com> | 2023-04-19 22:57:39 +0200 |
---|---|---|
committer | KevinOConnor <kevin@koconnor.net> | 2023-06-06 20:17:49 -0400 |
commit | a3c00d0bed759cacd73fa4160029b009e17da87e (patch) | |
tree | a0ced8ff5d60ffb6e11580c7783e37e49ad2d6f3 /klippy/chelper | |
parent | e15bad484403b1ef8a9b0ffc2abe6b092fd3c3f6 (diff) | |
download | kutter-a3c00d0bed759cacd73fa4160029b009e17da87e.tar.gz kutter-a3c00d0bed759cacd73fa4160029b009e17da87e.tar.xz kutter-a3c00d0bed759cacd73fa4160029b009e17da87e.zip |
input_shaper: Correctly initialize input shaper stepper_kinematics
If the stepper already executed some steps with the basic
stepper_kinematics, subsequent creation of a new one for input_shaper
would result in stepcompress errors unless position and time tracking
flags are also copied over.
Signed-off-by: Dmitry Butyugin <dmbutyugin@google.com>
Diffstat (limited to 'klippy/chelper')
-rw-r--r-- | klippy/chelper/kin_shaper.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/klippy/chelper/kin_shaper.c b/klippy/chelper/kin_shaper.c index dd9cf619..8c26e9a2 100644 --- a/klippy/chelper/kin_shaper.c +++ b/klippy/chelper/kin_shaper.c @@ -171,6 +171,9 @@ input_shaper_set_sk(struct stepper_kinematics *sk return -1; is->sk.active_flags = orig_sk->active_flags; is->orig_sk = orig_sk; + is->sk.commanded_pos = orig_sk->commanded_pos; + is->sk.last_flush_time = orig_sk->last_flush_time; + is->sk.last_move_time = orig_sk->last_move_time; return 0; } |