diff --git a/notes.c b/notes.c index 9b428d6..39fcf3b 100644 --- a/notes.c +++ b/notes.c @@ -192,6 +192,8 @@ play_note(unsigned char _note, unsigned short _cycles) { note = _note; + usart_send(note); + if (note != 255) { for (unsigned short i = 0; i < _cycles; i++) playtone(); @@ -247,9 +249,6 @@ main(void) // if a button was released, then send note and cycles played if (cycles > 0) { usart_send(tmp); - usart_send(HIGH(cycles)); - usart_send(LOW(cycles)); - usart_send(0xff); cycles = 0; } continue;