Fix error that led to continuous resetting of timer2 PWM channels
This commit is contained in:
parent
1887a178c1
commit
bfba65b904
@ -71,7 +71,7 @@ void ChannelControl_UpdatePWMs(
|
||||
}
|
||||
|
||||
if (timer2_running) {
|
||||
if ( (tsacfans == 0) || (pwmaggregat == 0) ) {
|
||||
if ( (tsacfans == 0) && (pwmaggregat == 0) ) {
|
||||
timer2_running = 0;
|
||||
HAL_TIM_PWM_Stop(pwmtimer2, TIM_CHANNEL_2);
|
||||
HAL_TIM_PWM_Stop(pwmtimer2, TIM_CHANNEL_3);
|
||||
|
Loading…
x
Reference in New Issue
Block a user