aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/stepper.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2021-10-01 19:09:37 -0400
committerKevin O'Connor <kevin@koconnor.net>2021-10-01 19:12:30 -0400
commitde38ef4290225a3178c3fb8bd31b2b100340db9f (patch)
tree02a792cf9d235253b4de20c7a81d5963667bb379 /klippy/stepper.py
parent68b939c7565d1b1031d15ebfa0f16d1717275e3e (diff)
downloadkutter-de38ef4290225a3178c3fb8bd31b2b100340db9f.tar.gz
kutter-de38ef4290225a3178c3fb8bd31b2b100340db9f.tar.xz
kutter-de38ef4290225a3178c3fb8bd31b2b100340db9f.zip
kinematics: Convert to Python3 string encoding
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/stepper.py')
-rw-r--r--klippy/stepper.py3
1 files changed, 2 insertions, 1 deletions
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):