diff options
author | Damien George <damien.p.george@gmail.com> | 2016-12-22 14:02:09 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2016-12-22 14:55:26 +1100 |
commit | b14abab9cd9e61307cd1101279f23fc77de09185 (patch) | |
tree | 0752bb4a8ffc80d077f78fa27675163e4c6feeb7 /examples/hwapi/soft_pwm_uasyncio.py | |
parent | ffe807f349294b67de15f63e113972251cd3901c (diff) | |
download | micropython-b14abab9cd9e61307cd1101279f23fc77de09185.tar.gz micropython-b14abab9cd9e61307cd1101279f23fc77de09185.zip |
stmhal/led: Properly initialise timer handle to zero before using it.
Without this the timer will have random values for its State and Lock
entries. The object can then be in a locked state leading to some HAL
functions returning immediately with an error code (which is unchecked).
This patch fixes such a bug which did manifest itself as PWM not working
correctly for LEDs.
Diffstat (limited to 'examples/hwapi/soft_pwm_uasyncio.py')
0 files changed, 0 insertions, 0 deletions