diff options
| -rw-r--r-- | notes.c | 5 |
1 files changed, 2 insertions, 3 deletions
| @@ -192,6 +192,8 @@ play_note(unsigned char _note, unsigned short _cycles) | |||
| 192 | { | 192 | { |
| 193 | note = _note; | 193 | note = _note; |
| 194 | 194 | ||
| 195 | usart_send(note); | ||
| 196 | |||
| 195 | if (note != 255) { | 197 | if (note != 255) { |
| 196 | for (unsigned short i = 0; i < _cycles; i++) | 198 | for (unsigned short i = 0; i < _cycles; i++) |
| 197 | playtone(); | 199 | playtone(); |
| @@ -247,9 +249,6 @@ main(void) | |||
| 247 | // if a button was released, then send note and cycles played | 249 | // if a button was released, then send note and cycles played |
| 248 | if (cycles > 0) { | 250 | if (cycles > 0) { |
| 249 | usart_send(tmp); | 251 | usart_send(tmp); |
| 250 | usart_send(HIGH(cycles)); | ||
| 251 | usart_send(LOW(cycles)); | ||
| 252 | usart_send(0xff); | ||
| 253 | cycles = 0; | 252 | cycles = 0; |
| 254 | } | 253 | } |
| 255 | continue; | 254 | continue; |
