Skip to content

Commit cf3b047

Browse files
committed
tmc2240: Allow the slope_control field to be configured via printer.cfg
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
1 parent aae29ba commit cf3b047

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

docs/Config_Reference.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3846,6 +3846,7 @@ run_current:
38463846
#driver_SEIMIN: 0
38473847
#driver_SFILT: 0
38483848
#driver_SG4_ANGLE_OFFSET: 1
3849+
#driver_SLOPE_CONTROL: 0
38493850
# Set the given register during the configuration of the TMC2240
38503851
# chip. This may be used to set custom motor parameters. The
38513852
# defaults for each parameter are next to the parameter name in the

klippy/extras/tmc2240.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,8 @@ def __init__(self, config):
408408
set_config_field(config, "tpowerdown", 10)
409409
# SG4_THRS
410410
set_config_field(config, "sg4_angle_offset", 1)
411+
# DRV_CONF
412+
set_config_field(config, "slope_control", 0)
411413

412414
def load_config_prefix(config):
413415
return TMC2240(config)

0 commit comments

Comments
 (0)