Furbish code and comment
Remove unneeded brackets and improve comment.
This commit is contained in:
parent
14dd301657
commit
a5d88e879c
1 changed files with 2 additions and 3 deletions
|
@ -695,9 +695,8 @@ ISR(PCINT1_vect) {
|
||||||
TCNT1 = 0;
|
TCNT1 = 0;
|
||||||
}
|
}
|
||||||
} else { // press
|
} else { // press
|
||||||
if (!(TCCR1B & (1 << CS10))) {
|
if (!(TCCR1B & (1 << CS10)))
|
||||||
TCCR1B |= (1 << CS11) | (1 << CS10); // Enable Timer/Counter1
|
TCCR1B |= (1 << CS11) | (1 << CS10); // Enable Timer/Counter1
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: proper debouncing
|
// TODO: proper debouncing
|
||||||
|
@ -706,7 +705,7 @@ ISR(PCINT1_vect) {
|
||||||
sei();
|
sei();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Timer/Counter1 compare match A
|
// Timer/Counter1 compare match A for back event
|
||||||
ISR(TIMER1_COMPA_vect) {
|
ISR(TIMER1_COMPA_vect) {
|
||||||
cli();
|
cli();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue