mirror of
https://github.com/qmk/qmk_firmware.git
synced 2024-11-25 20:56:42 +00:00
audio: Don't play the first note of zero-note melodies (#21661)
This commit is contained in:
parent
b2d068d1aa
commit
f0c9453083
@ -311,6 +311,10 @@ void audio_play_melody(float (*np)[][2], uint16_t n_count, bool n_repeat) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (n_count == 0) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (!audio_initialized) {
|
if (!audio_initialized) {
|
||||||
audio_init();
|
audio_init();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user