io_timer:Fixed imposible logic

This commit is contained in:
David Sidrane
2021-05-05 20:48:06 +02:00
committed by Lorenz Meier
parent 9a085126fd
commit dcbfc9de2d
@@ -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);
}