Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix conversion when COMPAT_MODE is set
The conversion was just backwards. In COMPAT_MODE, period value of 1000 corresponds to 1kHz, while, without COMPAT_MODE, 5000 corresponds to the same period. So when SDK_PWM_PERIOD_COMPAT_MODE is set, period should be multiplied by 5. For the same reason, duty needs to be divided by 5.
- Loading branch information
e3fce1d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Used comments of @zym060050 from StefanBruens#24