From 573fceefeb68fed66c55e294d3a68cbb8c6defbf Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Tue, 26 Oct 2021 20:00:33 -0400 Subject: [PATCH] input_shaper: Fix python3 string encoding Signed-off-by: Kevin O'Connor --- klippy/extras/input_shaper.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/klippy/extras/input_shaper.py b/klippy/extras/input_shaper.py index fe1271d4..2eebb59c 100644 --- a/klippy/extras/input_shaper.py +++ b/klippy/extras/input_shaper.py @@ -65,11 +65,11 @@ class AxisInputShaper: def set_shaper_kinematics(self, sk): ffi_main, ffi_lib = chelper.get_ffi() success = ffi_lib.input_shaper_set_shaper_params( - sk, bytes(self.axis), self.n, self.A, self.T) == 0 + sk, self.axis.encode(), self.n, self.A, self.T) == 0 if not success: self.disable_shaping() ffi_lib.input_shaper_set_shaper_params( - sk, bytes(self.axis), self.n, self.A, self.T) + sk, self.axis.encode(), self.n, self.A, self.T) return success def get_step_generation_window(self): ffi_main, ffi_lib = chelper.get_ffi()