kinematics: Convert to Python3 string encoding

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor
2021-10-01 19:09:37 -04:00
parent 68b939c756
commit de38ef4290
9 changed files with 31 additions and 30 deletions

View File

@@ -191,7 +191,8 @@ class MCU_stepper:
raise error("Internal error in stepcompress")
def is_active_axis(self, axis):
ffi_main, ffi_lib = chelper.get_ffi()
return ffi_lib.itersolve_is_active_axis(self._stepper_kinematics, axis)
a = axis.encode()
return ffi_lib.itersolve_is_active_axis(self._stepper_kinematics, a)
# Helper code to build a stepper object from a config section
def PrinterStepper(config, units_in_radians=False):