tmc5160: Change the default for the pwm_freq field to zero

The tmc5160 spec shows a default of zero, so use that same default for
Klipper.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2020-05-24 11:49:56 -04:00
parent 5afa5d3fbb
commit 686d557863
3 changed files with 5 additions and 2 deletions

View file

@ -347,7 +347,7 @@ class TMC5160:
# PWMCONF
set_config_field(config, "PWM_OFS", 30)
set_config_field(config, "PWM_GRAD", 0)
set_config_field(config, "pwm_freq", 1)
set_config_field(config, "pwm_freq", 0)
set_config_field(config, "pwm_autoscale", True)
set_config_field(config, "pwm_autograd", True)
set_config_field(config, "freewheel", 0)