From 5abea041b43367d33e1e5d1a225e4137de9cd087 Mon Sep 17 00:00:00 2001 From: Dave Bacon Date: Thu, 8 Feb 2018 09:44:33 -0500 Subject: [PATCH] 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 --- klippy/mcu.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(