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:
parent
268d1cb27c
commit
5abea041b4
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue