• Damien George's avatar
    stmhal/led: Properly initialise timer handle to zero before using it. · b14abab9
    Damien George authored
    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.
    b14abab9
led.c 11.8 KB