Skip to content

Commit

Permalink
fix for pylint
Browse files Browse the repository at this point in the history
  • Loading branch information
Chr157i4n committed Nov 13, 2023
1 parent e1b4750 commit 6427f12
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/TMC_2209/TMC_2209_StepperDriver.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,8 @@ def readGCONF(self):
else:
self.tmc_logger.log("Driver is using internal reference derived from 5VOUT")
if gconf & tmc_reg.internal_rsense:
self.tmc_logger.log("Internal sense resistors. Use current supplied into VREF as reference.")
self.tmc_logger.log("""Internal sense resistors.
Use current supplied into VREF as reference.""")
self.tmc_logger.log("VREF pin internally is driven to GND in this mode.")
self.tmc_logger.log("This will most likely destroy your driver!!!")
raise SystemExit
Expand Down Expand Up @@ -342,7 +343,8 @@ def readGSTAT(self):
self.tmc_logger.log("""The driver has been shut down due to overtemperature or
short circuit detection since the last read access""")
if gstat & tmc_reg.uv_cp:
self.tmc_logger.log("Undervoltage on the charge pump. The driver is disabled in this case")
self.tmc_logger.log("""Undervoltage on the charge pump.
The driver is disabled in this case""")
self.tmc_logger.log("---")
return gstat

Expand Down Expand Up @@ -1704,7 +1706,7 @@ def test_uart(self):
self.tmc_logger.log("length rtn: "+str(len(rtn)), Loglevel.DEBUG.value)

if len(rtn)==12:
self.tmc_logger.log("""the Raspberry Pi received the sended
self.tmc_logger.log("""the Raspberry Pi received the sended
bits and the answer from the TMC""",Loglevel.INFO.value)
elif len(rtn)==4:
self.tmc_logger.log("the Raspberry Pi received only the sended bits",
Expand Down

0 comments on commit 6427f12

Please sign in to comment.