Some code for NODATA alarm still remaining
This commit is contained in:
@@ -77,7 +77,6 @@ extern void beep(uint8_t val);
|
||||
#define AUDIO_VARIO_UP() _beep(1)
|
||||
#define AUDIO_VARIO_DOWN() _beep(1)
|
||||
#define AUDIO_TRIM_MIDDLE(f) beep(2)
|
||||
#define AUDIO_TELEMETRY_ALARM() { warble = !(g_tmr10ms % 60); AUDIO_WARNING2(); }
|
||||
|
||||
#define IS_AUDIO_BUSY() (g_beepCnt || beepAgain || beepOn)
|
||||
|
||||
|
||||
@@ -127,7 +127,6 @@ void audioDefevent(uint8_t e);
|
||||
#define AUDIO_VARIO_UP() audioDefevent(AU_KEYPAD_UP)
|
||||
#define AUDIO_VARIO_DOWN() audioDefevent(AU_KEYPAD_DOWN)
|
||||
#define AUDIO_TRIM_MIDDLE(f) audio.event(AU_TRIM_MIDDLE, f)
|
||||
#define AUDIO_TELEMETRY_ALARM() audioDefevent(AU_WARNING1)
|
||||
|
||||
#define AUDIO_HEARTBEAT() audio.heartbeat()
|
||||
|
||||
|
||||
+1
-4
@@ -637,12 +637,9 @@ void check_frsky()
|
||||
if (frskyStreaming > 0) {
|
||||
frskyStreaming--;
|
||||
}
|
||||
else if (g_eeGeneral.enableTelemetryAlarm) {
|
||||
else {
|
||||
frskyRSSI[0].set(0);
|
||||
frskyRSSI[1].set(0);
|
||||
if (!(g_tmr10ms % 30)) {
|
||||
AUDIO_TELEMETRY_ALARM();
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
@@ -1469,6 +1469,7 @@ void evalFunctions()
|
||||
#if defined(AUDIO)
|
||||
audioDefevent(AU_FRSKY_FIRST+sd->param);
|
||||
#else
|
||||
// TODO sound with warble = !(g_tmr10ms % 60); AUDIO_WARNING2(); }
|
||||
beep(3);
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -132,7 +132,6 @@ void audioDefevent(uint8_t e);
|
||||
#define AUDIO_VARIO_UP() audioDefevent(AU_KEYPAD_UP)
|
||||
#define AUDIO_VARIO_DOWN() audioDefevent(AU_KEYPAD_DOWN)
|
||||
#define AUDIO_TRIM_MIDDLE(f) audio.event(AU_TRIM_MIDDLE, f)
|
||||
#define AUDIO_TELEMETRY_ALARM() audioDefevent(AU_WARNING1)
|
||||
|
||||
#define AUDIO_DRIVER() audio.driver()
|
||||
#define AUDIO_HEARTBEAT() audio.heartbeat()
|
||||
|
||||
Reference in New Issue
Block a user