tmc2660: Do not enable SFILT by default

None of the other TMC driver enable SFILT by default and it seems
enabling SFILT may not be ideal for sensorless homing.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2021-03-10 11:38:05 -05:00
parent 3f07b16b35
commit 3ea2e4fc58
3 changed files with 5 additions and 3 deletions

View file

@ -100,7 +100,6 @@ FieldFormatters = dict(tmc2130.FieldFormatters)
FieldFormatters.update({
"DEDGE": (lambda v: "1(Both Edges Active!)" if v else ""),
"CHM": (lambda v: "1(constant toff)" if v else "0(spreadCycle)"),
"SFILT": (lambda v: "1(Filtered mode)" if v else "0(Standard mode)"),
"VSENSE": (lambda v: "%d(%dmV)" % (v, 165 if v else 305)),
"SDOFF": (lambda v: "1(Step/Dir disabled!)" if v else ""),
"DISS2G": (lambda v: "%d(Short to GND disabled!)" if v else ""),
@ -256,7 +255,7 @@ class TMC2660:
set_config_field(config, "SEMIN", 0)
# SGSCONF
set_config_field(config, "SFILT", 1)
set_config_field(config, "SFILT", 0)
set_config_field(config, "SGT", 0)
# DRVCONF