From d886c1761bbdfd23833996489afba6b75f312a4a Mon Sep 17 00:00:00 2001 From: Philippe Daouadi Date: Wed, 12 Mar 2025 20:33:57 +0100 Subject: [PATCH] axis_twist_compensation: allow compensating both axis at once Restores the behavior before #6739 since people seemed to rely on it, even if the math is not exact. Signed-off-by: Philippe Daouadi --- klippy/extras/axis_twist_compensation.py | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/klippy/extras/axis_twist_compensation.py b/klippy/extras/axis_twist_compensation.py index 3ab27f009..17437a97e 100644 --- a/klippy/extras/axis_twist_compensation.py +++ b/klippy/extras/axis_twist_compensation.py @@ -45,21 +45,6 @@ class AxisTwistCompensation: self.zy_compensations = config.getlists('zy_compensations', default=[], parser=float) - # Validate single compensation - valid_conditions = sum( - [ - bool(self.z_compensations), - bool(self.zy_compensations) - ] - ) - - if valid_conditions > 1: - raise config.error( - """AXIS_TWIST_COMPENSATION: Only one type of compensation - can be present at a time: - either z_compensations or zy_compensations.""" - ) - # setup calibrater self.calibrater = Calibrater(self, config) # register events