mcu: Allow set_stepper_kinematics() to set the kinematics back to None
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
5dc74f3152
commit
c6065e29a6
|
@ -90,6 +90,7 @@ class MCU_stepper:
|
|||
def set_stepper_kinematics(self, sk):
|
||||
old_sk = self._stepper_kinematics
|
||||
self._stepper_kinematics = sk
|
||||
if sk is not None:
|
||||
self._ffi_lib.itersolve_set_stepcompress(
|
||||
sk, self._stepqueue, self._step_dist)
|
||||
return old_sk
|
||||
|
|
Loading…
Reference in New Issue