Skip to content

Commit

Permalink
fixed R1703 (simplifiable-if-statement)
Browse files Browse the repository at this point in the history
  • Loading branch information
Chr157i4n committed Nov 7, 2023
1 parent a1b2475 commit e909631
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/TMC_2209/TMC_2209_StepperDriver.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)



Expand Down

0 comments on commit e909631

Please sign in to comment.