No need for frskyeventSample which resets the AUDIO queue!

This commit is contained in:
bsongis
2012-02-01 14:07:32 +00:00
parent 1ef48ee323
commit 55680a13fe
2 changed files with 0 additions and 21 deletions
-15
View File
@@ -42,10 +42,6 @@ void audioQueue::aqinit()
toneHaptic = 0;
hapticTick = 0;
#endif
#ifdef FRSKY
frskySample = 0;
#endif
}
bool audioQueue::busy()
@@ -167,17 +163,6 @@ void audioQueue::playASAP(uint8_t tFreq, uint8_t tLen, uint8_t tPause,
}
#ifdef FRSKY
//this is done so the menu selections only plays tone once!
void audioQueue::frskyeventSample(uint8_t e)
{
if(frskySample != e) {
aqinit(); //flush the queue
frskyevent(e);
frskySample = e;
}
}
void audioQueue::frskyevent(uint8_t e)
{
if (empty()) {
-6
View File
@@ -67,7 +67,6 @@
#define AU_TX_BATTERY_LOW (19)
#ifdef FRSKY
#define AU_FRSKY_WARN1 (0)
#define AU_FRSKY_WARN2 (1)
#define AU_FRSKY_CHEEP (2)
@@ -112,7 +111,6 @@ class audioQueue
#if defined(FRSKY)
void frskyevent(uint8_t e);
void frskyeventSample(uint8_t e);
#endif
#if defined(ISER9X)
@@ -186,10 +184,6 @@ inline void driver() {
uint8_t queueTonePause[AUDIO_QUEUE_LENGTH];
uint8_t queueToneRepeat[AUDIO_QUEUE_LENGTH];
#ifdef FRSKY
uint8_t frskySample;
#endif
#ifdef HAPTIC
uint8_t toneHaptic;
uint8_t hapticTick;