No need for frskyeventSample which resets the AUDIO queue!
This commit is contained in:
@@ -42,10 +42,6 @@ void audioQueue::aqinit()
|
|||||||
toneHaptic = 0;
|
toneHaptic = 0;
|
||||||
hapticTick = 0;
|
hapticTick = 0;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef FRSKY
|
|
||||||
frskySample = 0;
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool audioQueue::busy()
|
bool audioQueue::busy()
|
||||||
@@ -167,17 +163,6 @@ void audioQueue::playASAP(uint8_t tFreq, uint8_t tLen, uint8_t tPause,
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef FRSKY
|
#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)
|
void audioQueue::frskyevent(uint8_t e)
|
||||||
{
|
{
|
||||||
if (empty()) {
|
if (empty()) {
|
||||||
|
|||||||
@@ -67,7 +67,6 @@
|
|||||||
#define AU_TX_BATTERY_LOW (19)
|
#define AU_TX_BATTERY_LOW (19)
|
||||||
|
|
||||||
#ifdef FRSKY
|
#ifdef FRSKY
|
||||||
|
|
||||||
#define AU_FRSKY_WARN1 (0)
|
#define AU_FRSKY_WARN1 (0)
|
||||||
#define AU_FRSKY_WARN2 (1)
|
#define AU_FRSKY_WARN2 (1)
|
||||||
#define AU_FRSKY_CHEEP (2)
|
#define AU_FRSKY_CHEEP (2)
|
||||||
@@ -112,7 +111,6 @@ class audioQueue
|
|||||||
|
|
||||||
#if defined(FRSKY)
|
#if defined(FRSKY)
|
||||||
void frskyevent(uint8_t e);
|
void frskyevent(uint8_t e);
|
||||||
void frskyeventSample(uint8_t e);
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(ISER9X)
|
#if defined(ISER9X)
|
||||||
@@ -186,10 +184,6 @@ inline void driver() {
|
|||||||
uint8_t queueTonePause[AUDIO_QUEUE_LENGTH];
|
uint8_t queueTonePause[AUDIO_QUEUE_LENGTH];
|
||||||
uint8_t queueToneRepeat[AUDIO_QUEUE_LENGTH];
|
uint8_t queueToneRepeat[AUDIO_QUEUE_LENGTH];
|
||||||
|
|
||||||
#ifdef FRSKY
|
|
||||||
uint8_t frskySample;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef HAPTIC
|
#ifdef HAPTIC
|
||||||
uint8_t toneHaptic;
|
uint8_t toneHaptic;
|
||||||
uint8_t hapticTick;
|
uint8_t hapticTick;
|
||||||
|
|||||||
Reference in New Issue
Block a user