Skip to content

Commit

Permalink
increase size of note counter variable to avoid overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco Monaco authored and drashna committed Mar 5, 2019
1 parent dbfbe0d commit 73d8593
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion quantum/audio/audio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion quantum/audio/audio_arm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion quantum/audio/audio_pwm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 73d8593

Please sign in to comment.