remove unneccesary headers
This commit is contained in:
parent
92ccc9a7b8
commit
f407f3e8de
4 changed files with 19 additions and 16 deletions
|
@ -555,7 +555,10 @@ ISR(TIMER1_COMPA_vect)
|
|||
note_position++;
|
||||
bool end_of_note = false;
|
||||
if (TIMER_1_PERIOD > 0) {
|
||||
end_of_note = (note_position >= (note_length / TIMER_1_PERIOD * 0xFFFF - 1));
|
||||
if (!note_resting)
|
||||
end_of_note = (note_position >= (note_length / TIMER_1_PERIOD * 0xFFFF - 1));
|
||||
else
|
||||
end_of_note = (note_position >= (note_length));
|
||||
} else {
|
||||
end_of_note = (note_position >= (note_length));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue