last changes, not working
This commit is contained in:
@ -56,11 +56,8 @@ volatile uint8_t activeOffset = 0;
|
||||
|
||||
|
||||
ISR(TIMER0_A0, TA0_ISR_Ovrfl) {
|
||||
if (pulseWidthIdx == 0) {
|
||||
}
|
||||
|
||||
uint16_t pw = pulseWidths[pulseWidthIdx + activeOffset];
|
||||
if (pw != 0) {
|
||||
if (pulseWidthIdx == (NUM_OF_SINE_VALUES - 1)) {
|
||||
TA0CCR1 = pw;
|
||||
P2OUT |= BIT1;
|
||||
}
|
||||
|
Reference in New Issue
Block a user