summaryrefslogtreecommitdiffstats
path: root/quantum
diff options
context:
space:
mode:
authorMarco Monaco <marco@viafoura.com>2019-02-26 00:38:21 -0500
committerDrashna Jaelre <drashna@live.com>2019-03-05 15:03:24 -0800
commit73d8593352b910d9fba0953b54141875f0689486 (patch)
tree4f0e66d98034ef6fb6eebb57821a8dfccae8329b /quantum
parentdbfbe0d7f0d829fdebb3be5dff1c1dcc4b677568 (diff)
increase size of note counter variable to avoid overflow
Diffstat (limited to 'quantum')
-rw-r--r--quantum/audio/audio.c2
-rw-r--r--quantum/audio/audio_arm.c2
-rw-r--r--quantum/audio/audio_pwm.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/quantum/audio/audio.c b/quantum/audio/audio.c
index 6d6833ec11..3da164c736 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
diff --git a/quantum/audio/audio_arm.c b/quantum/audio/audio_arm.c
index a3a4039570..6760015ef4 100644
--- a/quantum/audio/audio_arm.c
+++ b/quantum/audio/audio_arm.c
@@ -54,7 +54,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
diff --git a/quantum/audio/audio_pwm.c b/quantum/audio/audio_pwm.c
index ded86edeea..ed67136099 100644
--- a/quantum/audio/audio_pwm.c
+++ b/quantum/audio/audio_pwm.c
@@ -94,7 +94,7 @@ bool notes_repeat;
float notes_rest;
bool note_resting = false;
-uint8_t current_note = 0;
+uint16_t current_note = 0;
uint8_t rest_counter = 0;
#ifdef VIBRATO_ENABLE