diff --git a/src/TMC_2209/TMC_2209_StepperDriver.py b/src/TMC_2209/TMC_2209_StepperDriver.py index 341c890..0a37fb8 100644 --- a/src/TMC_2209/TMC_2209_StepperDriver.py +++ b/src/TMC_2209/TMC_2209_StepperDriver.py @@ -781,10 +781,7 @@ def get_interpolation(self): return whether the tmc inbuilt interpolation is active """ chopconf = self.tmc_uart.read_int(reg.CHOPCONF) - if chopconf & reg.intpol: - return True - else: - return False + return bool(chopconf & reg.intpol)