From 4644a4b0ae20267b9692885b2bacc6b467b382ac Mon Sep 17 00:00:00 2001 From: Vineet K Date: Sun, 21 Apr 2024 22:21:24 -0400 Subject: [PATCH] send note in play_note() function --- notes.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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;