Bind/Rangecheck sound for PXX and DSM

This commit is contained in:
bernet.andre@gmail.com
2013-05-23 22:32:27 +00:00
parent 14bb497195
commit edb07e2c56
+15 -1
View File
@@ -3518,7 +3518,21 @@ void doMixerCalculations()
} //endif s_fade_fligh_phases
#if defined(DSM2)
if (s_rangecheck_mode) AUDIO_PLAY(AU_FRSKY_CHEEP);
static uint8_t count_dsm_range = 0;
if (s_rangecheck_mode)
if (++count_dsm_range >= 200) {
AUDIO_PLAY(AU_FRSKY_CHEEP);
count_dsm_range = 0;
}
#endif
#if defined(PXX)
static uint8_t count_pxx = 0;
if((pxxFlag[INTERNAL_MODULE] & PXX_SEND_RANGECHECK) || (pxxFlag[INTERNAL_MODULE] & PXX_SEND_RXNUM) || (pxxFlag[EXTERNAL_MODULE] & PXX_SEND_RANGECHECK) || (pxxFlag[EXTERNAL_MODULE] & PXX_SEND_RXNUM))
if (++count_pxx >= 250) {
AUDIO_PLAY(AU_FRSKY_CHEEP);
count_pxx = 0;
}
#endif
#if defined(CPUARM)