diff --git a/src/ersky9x/audio.cpp b/src/ersky9x/audio.cpp index ef9aa9e6c..b6a06145e 100644 --- a/src/ersky9x/audio.cpp +++ b/src/ersky9x/audio.cpp @@ -437,6 +437,7 @@ void AudioQueue::play(uint8_t tFreq, uint8_t tLen, uint8_t tPause, uint8_t tFlag { CoEnterMutexSection(audioMutex); + if (tFlags & PLAY_SOUND_VARIO) { background.freq = tFreq * 2; background.duration = tLen; @@ -531,6 +532,7 @@ void audioEvent(uint8_t e, uint8_t f) // inactivity timer alert case AU_INACTIVITY: audioQueue.play(70, 20, 4, 2|PLAY_NOW); + audioQueue.pause(200); break; // low battery in tx case AU_TX_BATTERY_LOW: @@ -583,8 +585,7 @@ void audioEvent(uint8_t e, uint8_t f) break; // pot/stick center case AU_POT_STICK_MIDDLE: - audioQueue.play(BEEP_DEFAULT_FREQ + 50, 20, 2, PLAY_NOW); - break; + audioQueue.play(BEEP_DEFAULT_FREQ + 50, 20, 2, PLAY_NOW); break; // mix warning 1 case AU_MIX_WARNING_1: audioQueue.play(BEEP_DEFAULT_FREQ + 50, 12, 0, PLAY_NOW); diff --git a/src/ersky9x/audio.h b/src/ersky9x/audio.h index 5557261f6..237960c31 100644 --- a/src/ersky9x/audio.h +++ b/src/ersky9x/audio.h @@ -36,7 +36,7 @@ #define AUDIO_QUEUE_LENGTH (20) #define BEEP_DEFAULT_FREQ (70) -#define BEEP_OFFSET (10) +#define BEEP_OFFSET (18) #define BEEP_KEY_UP_FREQ (BEEP_DEFAULT_FREQ+5) #define BEEP_KEY_DOWN_FREQ (BEEP_DEFAULT_FREQ-5) diff --git a/src/general_menus.cpp b/src/general_menus.cpp index 166b8d2cd..3295561d4 100644 --- a/src/general_menus.cpp +++ b/src/general_menus.cpp @@ -234,7 +234,7 @@ void menuProcSetup(uint8_t event) lcd_putsLeft( y, STR_SPKRPITCH); lcd_outdezAtt(GENERAL_PARAM_OFS, y, g_eeGeneral.speakerPitch, attr|LEFT); if (attr) { - CHECK_INCDEC_GENVAR(event, g_eeGeneral.speakerPitch, 0, 100); + CHECK_INCDEC_GENVAR(event, g_eeGeneral.speakerPitch, 0, 20); } break; #endif