Merge pull request #3392 from blckmn/dynamic_timer

Adding some padding for the synced option.
This commit is contained in:
J Blackman 2017-07-01 05:26:42 +10:00 committed by GitHub
commit 3253ac26a1
1 changed files with 1 additions and 1 deletions

View File

@ -313,7 +313,7 @@ void motorDevInit(const motorDevConfig_t *motorConfig, uint16_t idlePulse, uint8
#endif
/* standard PWM outputs */
const unsigned pwmRateHz = useUnsyncedPwm ? motorConfig->motorPwmRate : ceilf(1 / (sMin + sLen));
const unsigned pwmRateHz = useUnsyncedPwm ? motorConfig->motorPwmRate : ceilf(1 / (sMin + sLen * 2));
const uint32_t clock = timerClock(timerHardware->tim);
/* used to find the desired timer frequency for max resolution */