itersolve: Rename calc_position to calc_position_cb

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor
2019-10-27 11:06:46 -04:00
parent 9945cc0f46
commit 92993c062b
8 changed files with 20 additions and 20 deletions

View File

@@ -31,8 +31,8 @@ corexy_stepper_alloc(char type)
struct stepper_kinematics *sk = malloc(sizeof(*sk));
memset(sk, 0, sizeof(*sk));
if (type == '+')
sk->calc_position = corexy_stepper_plus_calc_position;
sk->calc_position_cb = corexy_stepper_plus_calc_position;
else if (type == '-')
sk->calc_position = corexy_stepper_minus_calc_position;
sk->calc_position_cb = corexy_stepper_minus_calc_position;
return sk;
}