diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2021-10-26 20:00:33 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2021-10-26 20:01:33 -0400 |
commit | 573fceefeb68fed66c55e294d3a68cbb8c6defbf (patch) | |
tree | 369012c37b9a801e5c14e5017478fa06cdfc269e | |
parent | b62171f350c8b49aa1cf6a0da803056de7ecfb92 (diff) | |
download | kutter-573fceefeb68fed66c55e294d3a68cbb8c6defbf.tar.gz kutter-573fceefeb68fed66c55e294d3a68cbb8c6defbf.tar.xz kutter-573fceefeb68fed66c55e294d3a68cbb8c6defbf.zip |
input_shaper: Fix python3 string encoding
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
-rw-r--r-- | klippy/extras/input_shaper.py | 4 |
1 files 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() |