From de38ef4290225a3178c3fb8bd31b2b100340db9f Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Fri, 1 Oct 2021 19:09:37 -0400 Subject: kinematics: Convert to Python3 string encoding Signed-off-by: Kevin O'Connor --- klippy/stepper.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'klippy/stepper.py') diff --git a/klippy/stepper.py b/klippy/stepper.py index d187a69f..ec757763 100644 --- a/klippy/stepper.py +++ b/klippy/stepper.py @@ -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): -- cgit v1.2.3-70-g09d2