qmk_firmware

QMK firmware for my keyboards (Corne, Sweep Ferris) and trackball (Ploopy Adept)
Log | Files | Refs | Submodules | LICENSE

commit f0c94530831805c7309eb833cdf31e3f0d9d99e1
parent b2d068d1aa95265f16670cbf5a68da745602fc12
Author: Nebuleon <2391500+Nebuleon@users.noreply.github.com>
Date:   Wed,  2 Aug 2023 12:07:43 -0400

audio: Don't play the first note of zero-note melodies (#21661)


Diffstat:
Mquantum/audio/audio.c | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/quantum/audio/audio.c b/quantum/audio/audio.c @@ -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(); }