Browse Source

increase size of note counter variable to avoid overflow

pull/5368/head 0.6.307
Marco Monaco 5 years ago
committed by Drashna Jaelre
parent
commit
73d8593352
3 changed files with 3 additions and 3 deletions
  1. +1
    -1
      quantum/audio/audio.c
  2. +1
    -1
      quantum/audio/audio_arm.c
  3. +1
    -1
      quantum/audio/audio_pwm.c

+ 1
- 1
quantum/audio/audio.c View 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


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


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


Loading…
Cancel
Save