diff options
| author | Marco Monaco <marco@viafoura.com> | 2019-02-26 00:38:21 -0500 |
|---|---|---|
| committer | Drashna Jaelre <drashna@live.com> | 2019-03-05 15:03:24 -0800 |
| commit | 73d8593352b910d9fba0953b54141875f0689486 (patch) | |
| tree | 4f0e66d98034ef6fb6eebb57821a8dfccae8329b /quantum/audio | |
| parent | dbfbe0d7f0d829fdebb3be5dff1c1dcc4b677568 (diff) | |
| download | qmk_firmware-73d8593352b910d9fba0953b54141875f0689486.tar.gz qmk_firmware-73d8593352b910d9fba0953b54141875f0689486.zip | |
increase size of note counter variable to avoid overflow
Diffstat (limited to 'quantum/audio')
| -rw-r--r-- | quantum/audio/audio.c | 2 | ||||
| -rw-r--r-- | quantum/audio/audio_arm.c | 2 | ||||
| -rw-r--r-- | quantum/audio/audio_pwm.c | 2 |
3 files changed, 3 insertions, 3 deletions
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; | |||
| 141 | bool notes_repeat; | 141 | bool notes_repeat; |
| 142 | bool note_resting = false; | 142 | bool note_resting = false; |
| 143 | 143 | ||
| 144 | uint8_t current_note = 0; | 144 | uint16_t current_note = 0; |
| 145 | uint8_t rest_counter = 0; | 145 | uint8_t rest_counter = 0; |
| 146 | 146 | ||
| 147 | #ifdef VIBRATO_ENABLE | 147 | #ifdef VIBRATO_ENABLE |
diff --git a/quantum/audio/audio_arm.c b/quantum/audio/audio_arm.c index a3a403957..6760015ef 100644 --- a/quantum/audio/audio_arm.c +++ b/quantum/audio/audio_arm.c | |||
| @@ -54,7 +54,7 @@ uint16_t notes_count; | |||
| 54 | bool notes_repeat; | 54 | bool notes_repeat; |
| 55 | bool note_resting = false; | 55 | bool note_resting = false; |
| 56 | 56 | ||
| 57 | uint8_t current_note = 0; | 57 | uint16_t current_note = 0; |
| 58 | uint8_t rest_counter = 0; | 58 | uint8_t rest_counter = 0; |
| 59 | 59 | ||
| 60 | #ifdef VIBRATO_ENABLE | 60 | #ifdef VIBRATO_ENABLE |
diff --git a/quantum/audio/audio_pwm.c b/quantum/audio/audio_pwm.c index ded86edee..ed6713609 100644 --- a/quantum/audio/audio_pwm.c +++ b/quantum/audio/audio_pwm.c | |||
| @@ -94,7 +94,7 @@ bool notes_repeat; | |||
| 94 | float notes_rest; | 94 | float notes_rest; |
| 95 | bool note_resting = false; | 95 | bool note_resting = false; |
| 96 | 96 | ||
| 97 | uint8_t current_note = 0; | 97 | uint16_t current_note = 0; |
| 98 | uint8_t rest_counter = 0; | 98 | uint8_t rest_counter = 0; |
| 99 | 99 | ||
| 100 | #ifdef VIBRATO_ENABLE | 100 | #ifdef VIBRATO_ENABLE |
