tmc5160: Increase maximum current error check

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>
This commit is contained in:
Kevin O'Connor 2023-11-08 13:46:13 -05:00
parent 187cc2f1b8
commit bb4711c5d3
1 changed files with 1 additions and 1 deletions

View File

@ -257,7 +257,7 @@ FieldFormatters.update({
######################################################################
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):