From bb4711c5d31e8159945f945c662e6668059a174f Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Wed, 8 Nov 2023 13:46:13 -0500 Subject: [PATCH] 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 --- klippy/extras/tmc5160.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/klippy/extras/tmc5160.py b/klippy/extras/tmc5160.py index b82b5fecd2ff..7ff47abf9f88 100644 --- a/klippy/extras/tmc5160.py +++ b/klippy/extras/tmc5160.py @@ -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):