Skip to content

Commit

Permalink
tmc5160: Increase maximum current error check
Browse files Browse the repository at this point in the history
It's possible to build and configure tmc5160 drivers with external
mosfets that support more than 3 amps.  The actual maximum for tmc5160
drivers is dependent on how the board is wired and the mosfets used.
Increase the error check to 10 amps.  This error checking is primarily
intended to catch "obvious misconfigurations" (eg, specifying
milli-amps instead of amps), and the new value of 10 amps should
suffice for this task.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
  • Loading branch information
KevinOConnor committed Nov 20, 2023
1 parent 187cc2f commit bb4711c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion klippy/extras/tmc5160.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@
######################################################################

VREF = 0.325
MAX_CURRENT = 3.000
MAX_CURRENT = 10.000 # Maximum dependent on board, but 10 is safe sanity check

class TMC5160CurrentHelper:
def __init__(self, config, mcu_tmc):
Expand Down

0 comments on commit bb4711c

Please sign in to comment.