tmc: Enable sg_angle_offset for smooth switching from Stealthchop to Spreadcycle (#6123)

Signed-off-by: Alan.Ma from BigTreeTech <tech@biqu3d.com>
This commit is contained in:
BIGTREETECH 2023-03-28 09:18:06 +08:00 committed by GitHub
parent 1a2033aba8
commit 346e3901f6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View file

@ -394,6 +394,8 @@ class TMC2240:
set_config_field(config, "pwm_lim", 12)
# TPOWERDOWN
set_config_field(config, "tpowerdown", 10)
# SG4_THRS
set_config_field(config, "sg4_angle_offset", 1)
def load_config_prefix(config):
return TMC2240(config)