aboutsummaryrefslogtreecommitdiffstats
path: root/klippy
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2023-11-08 13:46:13 -0500
committerKevin O'Connor <kevin@koconnor.net>2023-11-20 18:15:46 -0500
commitbb4711c5d31e8159945f945c662e6668059a174f (patch)
treeec50ba132669dc823d389477f8c18d80159dc3f7 /klippy
parent187cc2f1b89e3870d694f8db6a64b116992106b7 (diff)
downloadkutter-bb4711c5d31e8159945f945c662e6668059a174f.tar.gz
kutter-bb4711c5d31e8159945f945c662e6668059a174f.tar.xz
kutter-bb4711c5d31e8159945f945c662e6668059a174f.zip
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>
Diffstat (limited to 'klippy')
-rw-r--r--klippy/extras/tmc5160.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/klippy/extras/tmc5160.py b/klippy/extras/tmc5160.py
index b82b5fec..7ff47abf 100644
--- a/klippy/extras/tmc5160.py
+++ b/klippy/extras/tmc5160.py
@@ -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):