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>
This commit is contained in:
Dave Bacon 2018-02-08 09:44:33 -05:00 committed by Kevin O'Connor
parent 268d1cb27c
commit 5abea041b4
1 changed files with 1 additions and 1 deletions

View File

@ -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(