-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Milestone
Description
Currently:
uint32_t lposc_freq_khz_frac16 = (lposc_freq_khz % 1000) * 65536 / 1000; |
I think this line should be referencing lposc_freq_hz
instead of lposc_freq_khz
Given an input value of lposc_freq_hz = 32768
lposc_freq_khz
will be 32768 / 1000 = 32
This is the integer part
Fractional part cannot be derived from this
I am not sure if the rest of the maths makes sense either.
edit: The maths is correct but it does seem the wrong variable is being referenced.
Metadata
Metadata
Assignees
Labels
No labels