Fix error that led to continuous resetting of timer2 PWM channels
This commit is contained in:
		@ -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);
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user