diff options
author | Dmitry Butyugin <dmbutyugin@google.com> | 2023-08-01 18:23:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-01 12:23:52 -0400 |
commit | 36be1cfc5109355fb50cececedee936905fc6c7d (patch) | |
tree | e83c37a40214ee1ce001728fbf13e1d61c698e3d /klippy/chelper/kin_shaper.c | |
parent | ea330717cde4c05e8952ae3fbb4bec2f11e7672f (diff) | |
download | kutter-36be1cfc5109355fb50cececedee936905fc6c7d.tar.gz kutter-36be1cfc5109355fb50cececedee936905fc6c7d.tar.xz kutter-36be1cfc5109355fb50cececedee936905fc6c7d.zip |
idex_modes: COPY and MIRROR mode implementation (#6297)
COPY and MIRROR mode implementation
Correctly apply input shaper params to new dual_carriage
Added SAVE_/RESTORE_IDEX_STATE commands
Documentation updates for the new IDEX modes
Signed-off-by: Dmitry Butyugin <dmbutyugin@google.com>
Diffstat (limited to 'klippy/chelper/kin_shaper.c')
-rw-r--r-- | klippy/chelper/kin_shaper.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/klippy/chelper/kin_shaper.c b/klippy/chelper/kin_shaper.c index 8c26e9a2..18d14143 100644 --- a/klippy/chelper/kin_shaper.c +++ b/klippy/chelper/kin_shaper.c @@ -204,11 +204,11 @@ input_shaper_set_shaper_params(struct stepper_kinematics *sk, char axis struct input_shaper *is = container_of(sk, struct input_shaper, sk); struct shaper_pulses *sp = axis == 'x' ? &is->sx : &is->sy; int status = 0; - if (is->orig_sk->active_flags & (axis == 'x' ? AF_X : AF_Y)) + // Ignore input shaper update if the axis is not active + if (is->orig_sk->active_flags & (axis == 'x' ? AF_X : AF_Y)) { status = init_shaper(n, a, t, sp); - else - sp->num_pulses = 0; - shaper_note_generation_time(is); + shaper_note_generation_time(is); + } return status; } |