~ruther/qmk_firmware

73d8593352b910d9fba0953b54141875f0689486 — Marco Monaco 6 years ago dbfbe0d
increase size of note counter variable to avoid overflow
3 files changed, 3 insertions(+), 3 deletions(-)

M quantum/audio/audio.c
M quantum/audio/audio_arm.c
M quantum/audio/audio_pwm.c
M quantum/audio/audio.c => quantum/audio/audio.c +1 -1
@@ 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

M quantum/audio/audio_arm.c => quantum/audio/audio_arm.c +1 -1
@@ 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

M quantum/audio/audio_pwm.c => quantum/audio/audio_pwm.c +1 -1
@@ 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