auto-sync
This commit is contained in:
parent
70e5f4f91d
commit
80fd2bc02b
|
@ -56,7 +56,7 @@ static uint64_t getNextSwitchTimeUs(PwmConfig *state) {
|
||||||
* Once 'iteration' gets relatively high, we might lose calculation precision here.
|
* Once 'iteration' gets relatively high, we might lose calculation precision here.
|
||||||
* This is addressed by ITERATION_LIMIT
|
* This is addressed by ITERATION_LIMIT
|
||||||
*/
|
*/
|
||||||
uint64_t timeToSwitchUs = (uint64_t)((iteration + switchTime) * periodUs);
|
uint64_t timeToSwitchUs = (uint64_t) ((iteration + switchTime) * periodUs);
|
||||||
|
|
||||||
#if DEBUG_PWM
|
#if DEBUG_PWM
|
||||||
scheduleMsg(&logger, "start=%d timeToSwitch=%d", state->safe.start, timeToSwitch);
|
scheduleMsg(&logger, "start=%d timeToSwitch=%d", state->safe.start, timeToSwitch);
|
||||||
|
|
Loading…
Reference in New Issue