-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Description
In
codal-nrf52/source/NRF52PWM.cpp
Line 157 in bdfa1ec
| periodUs = period_ticks / (clock_frequency/1000000); |
period_ticks and another integer constant value, for period_ticks of 20 this will result in (float) periodUs being set to 1.0 rather than 1.25
periodUs = period_ticks / (clock_frequency/1000000);
I suspect that should be something like
periodUs = (float)period_ticks / (clock_frequency/1000000);
to force FP maths?
The actual PWM hardware timers are set using period_ticks so they are okay AFAICS.
Metadata
Metadata
Assignees
Labels
No labels