Bind/Rangecheck sound for PXX and DSM
This commit is contained in:
+7
-5
@@ -3528,11 +3528,13 @@ void doMixerCalculations()
|
|||||||
|
|
||||||
#if defined(PXX)
|
#if defined(PXX)
|
||||||
static uint8_t count_pxx = 0;
|
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))
|
for (uint8_t i = 0; i < NUM_MODULES; i++) {
|
||||||
if (++count_pxx >= 250) {
|
if((pxxFlag[i] & PXX_SEND_RANGECHECK) || (pxxFlag[i] & PXX_SEND_RXNUM))
|
||||||
AUDIO_PLAY(AU_FRSKY_CHEEP);
|
if (++count_pxx >= 250) {
|
||||||
count_pxx = 0;
|
AUDIO_PLAY(AU_FRSKY_CHEEP);
|
||||||
}
|
count_pxx = 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(CPUARM)
|
#if defined(CPUARM)
|
||||||
|
|||||||
Reference in New Issue
Block a user