diff --git a/scc/gui/ae/gyro.py b/scc/gui/ae/gyro.py index faadf34a..53cd3ecc 100644 --- a/scc/gui/ae/gyro.py +++ b/scc/gui/ae/gyro.py @@ -169,14 +169,15 @@ def send(self, *a): absolute, a_set = [ None, None, None ], False for i in range(0, 3): - if self.axes[i]: + # Fix case when axis id is zero (ABS_X) + if self.axes[i] != None: if self.cbs[i].get_active(): absolute[i] = self.axes[i] a_set = True else: normal[i] = self.axes[i] n_set = True - + if n_set and a_set: action = MultiAction(GyroAction(*normal), GyroAbsAction(*absolute)) elif n_set: