From 686d557863b5a529ec26c017ecd6bf7f5f05eb86 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Sun, 24 May 2020 11:49:56 -0400 Subject: [PATCH] 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 --- config/example-extras.cfg | 2 +- docs/Config_Changes.md | 3 +++ klippy/extras/tmc5160.py | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/config/example-extras.cfg b/config/example-extras.cfg index bf7a73f5..7591645b 100644 --- a/config/example-extras.cfg +++ b/config/example-extras.cfg @@ -1615,7 +1615,7 @@ #driver_DISS2VS: 0 #driver_PWM_AUTOSCALE: True #driver_PWM_AUTOGRAD: True -#driver_PWM_FREQ: 1 +#driver_PWM_FREQ: 0 #driver_FREEWHEEL: 0 #driver_PWM_GRAD: 0 #driver_PWM_OFS: 30 diff --git a/docs/Config_Changes.md b/docs/Config_Changes.md index 24a26d6e..c0367bfa 100644 --- a/docs/Config_Changes.md +++ b/docs/Config_Changes.md @@ -6,6 +6,9 @@ All dates in this document are approximate. # Changes +20200524: The default value for the tmc5160 pwm_freq field is now zero +(instead of one). + 20200425: The gcode_macro command template variable `printer.heater` was renamed to `printer.heaters`. diff --git a/klippy/extras/tmc5160.py b/klippy/extras/tmc5160.py index 2d82900c..a188ba47 100644 --- a/klippy/extras/tmc5160.py +++ b/klippy/extras/tmc5160.py @@ -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)