From 563bc37073d499b438d735ccc4a372d647bcdbf8 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Fri, 8 Mar 2019 11:25:19 -0500 Subject: [PATCH] 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 --- config/example-extras.cfg | 4 ++-- docs/Config_Changes.md | 3 +++ klippy/extras/tmc2130.py | 2 +- klippy/extras/tmc2208.py | 2 +- 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)