From 73d8593352b910d9fba0953b54141875f0689486 Mon Sep 17 00:00:00 2001 From: Marco Monaco Date: Tue, 26 Feb 2019 00:38:21 -0500 Subject: increase size of note counter variable to avoid overflow --- quantum/audio/audio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'quantum/audio/audio.c') diff --git a/quantum/audio/audio.c b/quantum/audio/audio.c index 6d6833ec1..3da164c73 100644 --- a/quantum/audio/audio.c +++ b/quantum/audio/audio.c @@ -141,7 +141,7 @@ uint16_t notes_count; bool notes_repeat; bool note_resting = false; -uint8_t current_note = 0; +uint16_t current_note = 0; uint8_t rest_counter = 0; #ifdef VIBRATO_ENABLE -- cgit v1.2.3-24-g4f1b