io_timer:Fixed imposible logic

This commit is contained in:
David Sidrane 2021-04-29 13:52:38 -07:00 committed by Lorenz Meier
parent 9a085126fd
commit dcbfc9de2d
1 changed files with 1 additions and 1 deletions

View File

@ -769,7 +769,7 @@ int io_timer_set_rate(unsigned timer, unsigned rate)
int changeOneShot = reallocate_channel_resources(channels, IOTimerChanMode_OneShot, IOTimerChanMode_PWMOut);
int changeDshot = reallocate_channel_resources(channels, IOTimerChanMode_Dshot, IOTimerChanMode_PWMOut);
if (changeOneShot && changeDshot) {
if (changeOneShot || changeDshot) {
io_timer_set_PWM_mode(timer);
}