input_shaper: Fixed initialization for dual_carriage

Signed-off-by: Dmitry Butyugin <dmbutyugin@google.com>
This commit is contained in:
Dmitry Butyugin
2025-10-06 18:40:57 +02:00
committed by KevinOConnor
parent 470803853e
commit b7602ff969

View File

@@ -217,11 +217,11 @@ input_shaper_update_sk(struct stepper_kinematics *sk)
{
struct input_shaper *is = container_of(sk, struct input_shaper, sk);
int kin_flags = is->orig_sk->active_flags & (AF_X | AF_Y | AF_Z);
if ((kin_flags & AF_X) == AF_X)
if (kin_flags == AF_X)
is->sk.calc_position_cb = shaper_x_calc_position;
else if ((kin_flags & AF_Y) == AF_Y)
else if (kin_flags == AF_Y)
is->sk.calc_position_cb = shaper_y_calc_position;
else if ((kin_flags & AF_Z) == AF_Z)
else if (kin_flags == AF_Z)
is->sk.calc_position_cb = shaper_z_calc_position;
else
is->sk.calc_position_cb = shaper_xyz_calc_position;