From 1552a5bb513633e346b90bebf6bcff4a12fd8f5d Mon Sep 17 00:00:00 2001 From: "rob@marotori.com" Date: Tue, 17 Apr 2012 17:11:35 +0000 Subject: [PATCH] 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. --- src/audio.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/audio.cpp b/src/audio.cpp index 07dff3f11..7a4292234 100644 --- a/src/audio.cpp +++ b/src/audio.cpp @@ -253,11 +253,11 @@ void audioQueue::event(uint8_t e, uint8_t f) break; // time 10 seconds left case AU_TIMER_10: - playNow(BEEP_DEFAULT_FREQ + 50, 15, 3, 1); + playNow(BEEP_DEFAULT_FREQ + 50, 15, 3, 0); break; // time <3 seconds left case AU_TIMER_LT3: - playNow(BEEP_DEFAULT_FREQ, 20, 25, 1); + playNow(BEEP_DEFAULT_FREQ + 50, 15, 3, 0); break; case AU_FRSKY_WARN1: 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) { - audio.event(e, BEEP_DEFAULT_FREQ); #ifdef HAPTIC - hapticAudioEvent(e); -#endif + hapticAudioEvent(e); //do this before audio to help sync timings +#endif + audio.event(e, BEEP_DEFAULT_FREQ); }