diff --git a/src/TMC_2209/TMC_2209_StepperDriver.py b/src/TMC_2209/TMC_2209_StepperDriver.py index 0a53f72..efb66cd 100644 --- a/src/TMC_2209/TMC_2209_StepperDriver.py +++ b/src/TMC_2209/TMC_2209_StepperDriver.py @@ -535,7 +535,7 @@ def reverse_direction_pin(self): reverses the motor shaft direction """ self._direction = not self._direction - GPIO.output(self._pin_dir, self.direction) + GPIO.output(self._pin_dir, self._direction)