1
0
Fork 0

remove unneccesary headers

This commit is contained in:
Jack Humbert 2017-07-21 13:18:36 -04:00
parent 92ccc9a7b8
commit f407f3e8de
4 changed files with 19 additions and 16 deletions

View file

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