aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2019-03-08 11:25:19 -0500
committerKevin O'Connor <kevin@koconnor.net>2019-03-08 11:25:19 -0500
commit563bc37073d499b438d735ccc4a372d647bcdbf8 (patch)
tree59308dfb35d5b17ffe217af31c63d09299acfa91
parent9c0cf829ee589400e738a337e12b0bd071320769 (diff)
downloadkutter-563bc37073d499b438d735ccc4a372d647bcdbf8.tar.gz
kutter-563bc37073d499b438d735ccc4a372d647bcdbf8.tar.xz
kutter-563bc37073d499b438d735ccc4a372d647bcdbf8.zip
tmc2130: Rename driver_BLANK_TIME_SELECT to driver_TBL
Use the field names from the trinamic specification. This makes the field similar to all the other driver_XXX config options. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
-rw-r--r--config/example-extras.cfg4
-rw-r--r--docs/Config_Changes.md3
-rw-r--r--klippy/extras/tmc2130.py2
-rw-r--r--klippy/extras/tmc2208.py2
4 files changed, 7 insertions, 4 deletions
diff --git a/config/example-extras.cfg b/config/example-extras.cfg
index a686e80f..3ef308a3 100644
--- a/config/example-extras.cfg
+++ b/config/example-extras.cfg
@@ -937,7 +937,7 @@
# "stealthChop" mode.
#driver_IHOLDDELAY: 8
#driver_TPOWERDOWN: 0
-#driver_BLANK_TIME_SELECT: 1
+#driver_TBL: 1
#driver_TOFF: 4
#driver_HEND: 7
#driver_HSTRT: 0
@@ -997,7 +997,7 @@
# "stealthChop" mode.
#driver_IHOLDDELAY: 8
#driver_TPOWERDOWN: 20
-#driver_BLANK_TIME_SELECT: 2
+#driver_TBL: 2
#driver_TOFF: 3
#driver_HEND: 0
#driver_HSTRT: 5
diff --git a/docs/Config_Changes.md b/docs/Config_Changes.md
index 87cc34da..7a3e902e 100644
--- a/docs/Config_Changes.md
+++ b/docs/Config_Changes.md
@@ -6,6 +6,9 @@ All dates in this document are approximate.
# Changes
+20190308: The "driver_BLANK_TIME_SELECT" field in [tmc2130] and
+[tmc2208] config sections has been renamed to "driver_TBL".
+
20190308: The [tmc2660] config section has changed. A new
sense_resistor config parameter must now be provided. The meaning of
several of the driver_XXX parameters has changed.
diff --git a/klippy/extras/tmc2130.py b/klippy/extras/tmc2130.py
index 67672659..4932b0d4 100644
--- a/klippy/extras/tmc2130.py
+++ b/klippy/extras/tmc2130.py
@@ -235,7 +235,7 @@ class TMC2130:
set_config_field(config, "toff", 4)
set_config_field(config, "hstrt", 0)
set_config_field(config, "hend", 7)
- set_config_field(config, "TBL", 1, "driver_BLANK_TIME_SELECT")
+ set_config_field(config, "TBL", 1)
set_config_field(config, "intpol", True, "interpolate")
set_config_field(config, "IHOLDDELAY", 8)
set_config_field(config, "TPOWERDOWN", 0)
diff --git a/klippy/extras/tmc2208.py b/klippy/extras/tmc2208.py
index 51971b0a..a6f954c5 100644
--- a/klippy/extras/tmc2208.py
+++ b/klippy/extras/tmc2208.py
@@ -295,7 +295,7 @@ class TMC2208:
set_config_field(config, "toff", 3)
set_config_field(config, "hstrt", 5)
set_config_field(config, "hend", 0)
- set_config_field(config, "TBL", 2, "driver_BLANK_TIME_SELECT")
+ set_config_field(config, "TBL", 2)
set_config_field(config, "intpol", True, "interpolate")
set_config_field(config, "IHOLDDELAY", 8)
set_config_field(config, "TPOWERDOWN", 20)