[X9D] Audio adjustments on warnings
This commit is contained in:
+6
-1
@@ -1367,7 +1367,7 @@ void checkSwitches()
|
|||||||
|
|
||||||
// first - display warning
|
// first - display warning
|
||||||
if (last_bad_switches != switches_states) {
|
if (last_bad_switches != switches_states) {
|
||||||
MESSAGE(STR_SWITCHWARN, NULL, STR_PRESSANYKEYTOSKIP, AU_SWITCH_ALERT);
|
MESSAGE(STR_SWITCHWARN, NULL, STR_PRESSANYKEYTOSKIP, last_bad_switches == 0xff ? AU_SWITCH_ALERT : AU_NONE);
|
||||||
#if defined(PCBX9D)
|
#if defined(PCBX9D)
|
||||||
for (uint8_t i=0; i<NUM_SWITCHES-1; i++) {
|
for (uint8_t i=0; i<NUM_SWITCHES-1; i++) {
|
||||||
swstate_t mask = (0x03 << (1+i*2));
|
swstate_t mask = (0x03 << (1+i*2));
|
||||||
@@ -3031,7 +3031,12 @@ void perMain()
|
|||||||
static uint8_t s_batCheck;
|
static uint8_t s_batCheck;
|
||||||
static uint16_t s_batSum;
|
static uint16_t s_batSum;
|
||||||
|
|
||||||
|
#if defined(VOICE)
|
||||||
|
s_batCheck += 8;
|
||||||
|
#else
|
||||||
s_batCheck += 32;
|
s_batCheck += 32;
|
||||||
|
#endif
|
||||||
|
|
||||||
s_batSum += instant_vbat;
|
s_batSum += instant_vbat;
|
||||||
|
|
||||||
if (g_vbat100mV == 0) {
|
if (g_vbat100mV == 0) {
|
||||||
|
|||||||
@@ -1166,6 +1166,8 @@ enum AUDIO_SOUNDS {
|
|||||||
AU_FRSKY_RATATA,
|
AU_FRSKY_RATATA,
|
||||||
AU_FRSKY_TICK,
|
AU_FRSKY_TICK,
|
||||||
AU_FRSKY_LAST,
|
AU_FRSKY_LAST,
|
||||||
|
|
||||||
|
AU_NONE=0xff
|
||||||
};
|
};
|
||||||
|
|
||||||
#if defined(AUDIO)
|
#if defined(AUDIO)
|
||||||
|
|||||||
Reference in New Issue
Block a user