mirror of
https://github.com/Cian-H/qmk_firmware.git
synced 2026-03-25 08:02:46 +00:00
audio: Don't play the first note of zero-note melodies (#21661)
This commit is contained in:
@@ -311,6 +311,10 @@ void audio_play_melody(float (*np)[][2], uint16_t n_count, bool n_repeat) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (n_count == 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!audio_initialized) {
|
||||
audio_init();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user