Soft Watchdog, Current Monitoring and other Fixes #1
@ -71,7 +71,7 @@ void ChannelControl_UpdatePWMs(
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (timer2_running) {
|
if (timer2_running) {
|
||||||
if ( (tsacfans == 0) || (pwmaggregat == 0) ) {
|
if ( (tsacfans == 0) && (pwmaggregat == 0) ) {
|
||||||
timer2_running = 0;
|
timer2_running = 0;
|
||||||
HAL_TIM_PWM_Stop(pwmtimer2, TIM_CHANNEL_2);
|
HAL_TIM_PWM_Stop(pwmtimer2, TIM_CHANNEL_2);
|
||||||
HAL_TIM_PWM_Stop(pwmtimer2, TIM_CHANNEL_3);
|
HAL_TIM_PWM_Stop(pwmtimer2, TIM_CHANNEL_3);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user