aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2018-05-24 10:44:45 -0400
committerKevin O'Connor <kevin@koconnor.net>2018-05-24 10:44:45 -0400
commitc4fe43ffce686d967d0cf3cd5510768bc49a1803 (patch)
treeb28cbe7f0ed4a5b9dd0b047e95b2f2fb1c507603
parentee4f37fe0c61dd525d4f03e800da38c42781b66f (diff)
downloadkutter-c4fe43ffce686d967d0cf3cd5510768bc49a1803.tar.gz
kutter-c4fe43ffce686d967d0cf3cd5510768bc49a1803.tar.xz
kutter-c4fe43ffce686d967d0cf3cd5510768bc49a1803.zip
tmc2130: The default TOFF time should be 4
The recommended TOFF time in "standalone mode" according to the tmc2130 is 4, so use that as the default. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
-rw-r--r--config/example-extras.cfg2
-rw-r--r--klippy/extras/tmc2130.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/config/example-extras.cfg b/config/example-extras.cfg
index 0cc95b0f..c52cff8b 100644
--- a/config/example-extras.cfg
+++ b/config/example-extras.cfg
@@ -453,7 +453,7 @@
#driver_IHOLDDELAY: 8
#driver_TPOWERDOWN: 0
#driver_BLANK_TIME_SELECT: 1
-#driver_TOFF: 1
+#driver_TOFF: 4
#driver_HEND: 7
#driver_HSTRT: 0
# Set the given register during the configuration of the TMC2130
diff --git a/klippy/extras/tmc2130.py b/klippy/extras/tmc2130.py
index 72d1faf1..995f297a 100644
--- a/klippy/extras/tmc2130.py
+++ b/klippy/extras/tmc2130.py
@@ -33,7 +33,7 @@ class tmc2130:
tpowerdown = config.getint('driver_TPOWERDOWN', 0, minval=0, maxval=255)
blank_time_select = config.getint('driver_BLANK_TIME_SELECT', 1,
minval=0, maxval=3)
- toff = config.getint('driver_TOFF', 1, minval=1, maxval=15)
+ toff = config.getint('driver_TOFF', 4, minval=1, maxval=15)
hend = config.getint('driver_HEND', 7, minval=0, maxval=15)
hstrt = config.getint('driver_HSTRT', 0, minval=0, maxval=7)
# calculate current