diff options
Diffstat (limited to 'quantum/audio.c')
| -rw-r--r-- | quantum/audio.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/quantum/audio.c b/quantum/audio.c index 58b9ab76b..3ccd5ab9b 100644 --- a/quantum/audio.c +++ b/quantum/audio.c | |||
| @@ -353,7 +353,6 @@ if (audio_config.enable) { | |||
| 353 | 353 | ||
| 354 | if (note) | 354 | if (note) |
| 355 | stop_all_notes(); | 355 | stop_all_notes(); |
| 356 | notes = true; | ||
| 357 | 356 | ||
| 358 | notes_pointer = np; | 357 | notes_pointer = np; |
| 359 | notes_count = n_count; | 358 | notes_count = n_count; |
| @@ -378,6 +377,8 @@ if (audio_config.enable) { | |||
| 378 | TIMSK3 |= _BV(OCIE3A); | 377 | TIMSK3 |= _BV(OCIE3A); |
| 379 | TCCR3A |= _BV(COM3A1); | 378 | TCCR3A |= _BV(COM3A1); |
| 380 | #endif | 379 | #endif |
| 380 | |||
| 381 | notes = true; | ||
| 381 | } | 382 | } |
| 382 | 383 | ||
| 383 | } | 384 | } |
| @@ -407,7 +408,6 @@ if (audio_config.enable && voices < 8) { | |||
| 407 | 408 | ||
| 408 | if (notes) | 409 | if (notes) |
| 409 | stop_all_notes(); | 410 | stop_all_notes(); |
| 410 | note = true; | ||
| 411 | #ifdef PWM_AUDIO | 411 | #ifdef PWM_AUDIO |
| 412 | freq = freq / SAMPLE_RATE; | 412 | freq = freq / SAMPLE_RATE; |
| 413 | #endif | 413 | #endif |
| @@ -439,6 +439,7 @@ if (audio_config.enable && voices < 8) { | |||
| 439 | TCCR3A |= _BV(COM3A1); | 439 | TCCR3A |= _BV(COM3A1); |
| 440 | #endif | 440 | #endif |
| 441 | 441 | ||
| 442 | note = true; | ||
| 442 | } | 443 | } |
| 443 | 444 | ||
| 444 | } | 445 | } |
