Small update to audio to sort issues on count down timer - not tested yet as compile currently failing on sky9x board for me. Please check and let me know if sorted.
This commit is contained in:
+4
-4
@@ -253,11 +253,11 @@ void audioQueue::event(uint8_t e, uint8_t f)
|
|||||||
break;
|
break;
|
||||||
// time 10 seconds left
|
// time 10 seconds left
|
||||||
case AU_TIMER_10:
|
case AU_TIMER_10:
|
||||||
playNow(BEEP_DEFAULT_FREQ + 50, 15, 3, 1);
|
playNow(BEEP_DEFAULT_FREQ + 50, 15, 3, 0);
|
||||||
break;
|
break;
|
||||||
// time <3 seconds left
|
// time <3 seconds left
|
||||||
case AU_TIMER_LT3:
|
case AU_TIMER_LT3:
|
||||||
playNow(BEEP_DEFAULT_FREQ, 20, 25, 1);
|
playNow(BEEP_DEFAULT_FREQ + 50, 15, 3, 0);
|
||||||
break;
|
break;
|
||||||
case AU_FRSKY_WARN1:
|
case AU_FRSKY_WARN1:
|
||||||
playASAP(BEEP_DEFAULT_FREQ+20,15,5,2);
|
playASAP(BEEP_DEFAULT_FREQ+20,15,5,2);
|
||||||
@@ -320,8 +320,8 @@ void audioQueue::event(uint8_t e, uint8_t f)
|
|||||||
|
|
||||||
void audioDefevent(uint8_t e)
|
void audioDefevent(uint8_t e)
|
||||||
{
|
{
|
||||||
audio.event(e, BEEP_DEFAULT_FREQ);
|
|
||||||
#ifdef HAPTIC
|
#ifdef HAPTIC
|
||||||
hapticAudioEvent(e);
|
hapticAudioEvent(e); //do this before audio to help sync timings
|
||||||
#endif
|
#endif
|
||||||
|
audio.event(e, BEEP_DEFAULT_FREQ);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user