mirror of
https://github.com/opentx/opentx.git
synced 2025-07-26 09:45:21 +03:00
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:
parent
e4c59f402d
commit
1552a5bb51
1 changed files with 5 additions and 5 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue