mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-21 01:12:11 +00:00
io_timer:Fixed imposible logic
This commit is contained in:
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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user