mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-17 04:07:35 +08:00
c41d7ebdd3
The code was forcing the CV reload, but not resettting the count
this would cause short and long blinks during breathing.
this change allows the CV to update at 50Hz (20 ms) asynchronously.
So the LED update rate of 40Hz (25) will take effect on the next
FTM counter change, end of the prescaler counting, after CnV register
was written.update.
a b c d
LED PWM ___-___-___-___-___-___-___-___-___-___
LED Data ____-____-____-____-____-____-____-____-
a b c d