Fix timer output

This commit is contained in:
Ben V. Brown
2022-07-01 17:54:54 +10:00
parent e174dba676
commit 7614a5b92b
2 changed files with 3 additions and 4 deletions

View File

@@ -87,7 +87,6 @@ void timer0_comp2_callback(void) {
// Turn on output
PWM_Channel_Enable(PWM_Channel);
} else {
TIMER_SetCompValue(TIMER_CH0, TIMER_COMP_ID_1, 0);
// Leave output off
PWM_Channel_Disable(PWM_Channel);
}