Fix error that led to continuous resetting of timer2 PWM channels

This commit is contained in:
Autobox 2024-07-31 11:21:00 +02:00
parent 1887a178c1
commit bfba65b904
1 changed files with 1 additions and 1 deletions

View File

@ -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);