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:
Kevin O'Connor 2018-12-12 21:11:01 -05:00
parent 5dc74f3152
commit c6065e29a6
1 changed files with 3 additions and 2 deletions

View File

@ -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