aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/mcu.py
diff options
context:
space:
mode:
authorDave Bacon <drb.github@mrbacon.com>2018-02-08 09:44:33 -0500
committerKevin O'Connor <kevin@koconnor.net>2018-02-10 13:00:22 -0500
commit5abea041b43367d33e1e5d1a225e4137de9cd087 (patch)
treef71a03c92210006ae583228bb0ed7f000bf89f68 /klippy/mcu.py
parent268d1cb27ced75ef1db58eecaf9e74d7fb011682 (diff)
downloadkutter-5abea041b43367d33e1e5d1a225e4137de9cd087.tar.gz
kutter-5abea041b43367d33e1e5d1a225e4137de9cd087.tar.xz
kutter-5abea041b43367d33e1e5d1a225e4137de9cd087.zip
mcu: Fix PWM static start value setup
config_setup uses ._start_value instead of ._static_value which isn't defined. Signed-off-by: Dave Bacon <drb.github@mrbacon.com>
Diffstat (limited to 'klippy/mcu.py')
-rw-r--r--klippy/mcu.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/klippy/mcu.py b/klippy/mcu.py
index ce85c4c8..fed45f82 100644
--- a/klippy/mcu.py
+++ b/klippy/mcu.py
@@ -311,7 +311,7 @@ class MCU_pwm:
self._mcu.add_config_cmd(
"set_pwm_out pin=%s cycle_ticks=%d value=%d" % (
self._pin, cycle_ticks,
- self._static_value * self._pwm_max))
+ self._start_value * self._pwm_max))
return
self._oid = self._mcu.create_oid()
self._mcu.add_config_cmd(