diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2025-01-10 12:29:41 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2025-01-10 12:29:41 -0500 |
commit | cf3b0475daa0d7154d2f986f94d8c184c7cf39c1 (patch) | |
tree | 8a919381d5c93d0f431181e4a67bc6da6afd6460 | |
parent | aae29ba48b2b15594f3b39ca0d6a5df9263dff0a (diff) | |
download | kutter-cf3b0475daa0d7154d2f986f94d8c184c7cf39c1.tar.gz kutter-cf3b0475daa0d7154d2f986f94d8c184c7cf39c1.tar.xz kutter-cf3b0475daa0d7154d2f986f94d8c184c7cf39c1.zip |
tmc2240: Allow the slope_control field to be configured via printer.cfg
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
-rw-r--r-- | docs/Config_Reference.md | 1 | ||||
-rw-r--r-- | klippy/extras/tmc2240.py | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/docs/Config_Reference.md b/docs/Config_Reference.md index f797d2b0..52ba3a49 100644 --- a/docs/Config_Reference.md +++ b/docs/Config_Reference.md @@ -3846,6 +3846,7 @@ run_current: #driver_SEIMIN: 0 #driver_SFILT: 0 #driver_SG4_ANGLE_OFFSET: 1 +#driver_SLOPE_CONTROL: 0 # Set the given register during the configuration of the TMC2240 # chip. This may be used to set custom motor parameters. The # defaults for each parameter are next to the parameter name in the diff --git a/klippy/extras/tmc2240.py b/klippy/extras/tmc2240.py index 8816ea2e..214896e7 100644 --- a/klippy/extras/tmc2240.py +++ b/klippy/extras/tmc2240.py @@ -408,6 +408,8 @@ class TMC2240: set_config_field(config, "tpowerdown", 10) # SG4_THRS set_config_field(config, "sg4_angle_offset", 1) + # DRV_CONF + set_config_field(config, "slope_control", 0) def load_config_prefix(config): return TMC2240(config) |