]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
increase size of note counter variable to avoid overflow
authorMarco Monaco <marco@viafoura.com>
Tue, 26 Feb 2019 05:38:21 +0000 (00:38 -0500)
committerDrashna Jaelre <drashna@live.com>
Tue, 5 Mar 2019 23:03:24 +0000 (15:03 -0800)
quantum/audio/audio.c
quantum/audio/audio_arm.c
quantum/audio/audio_pwm.c

index 6d6833ec11f178dc1ec1a98fc68b76b4bb2b0390..3da164c736ef44611ab77f7de713e199b927141f 100644 (file)
@@ -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
index a3a403957045555b268dd737e43989f1f8fe012f..6760015ef462700d20249c79cc009346265b3e2b 100644 (file)
@@ -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
index ded86edeea9e683332051caed0e0f3fdf3a8cf2b..ed67136099a8889b13bc9e56974842da8bfe552e 100644 (file)
@@ -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