last changes, not working

This commit is contained in:
Wolfgang Hottgenroth
2016-10-15 10:42:01 +02:00
parent 97e0ffa84b
commit f098ea8f82
2 changed files with 3 additions and 6 deletions

View File

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