From 4e6bc9db2f5e8da68ba127e038761f40eca41594 Mon Sep 17 00:00:00 2001 From: bsongis Date: Mon, 30 Mar 2015 00:18:26 +0200 Subject: [PATCH] [ARM boards] Haptic was broken on 'next' --- radio/src/audio_arm.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/radio/src/audio_arm.cpp b/radio/src/audio_arm.cpp index 52e97764b..0308ea8a1 100644 --- a/radio/src/audio_arm.cpp +++ b/radio/src/audio_arm.cpp @@ -974,6 +974,12 @@ void audioEvent(unsigned int index, unsigned int freq) if (index == AU_NONE) return; +#if defined(HAPTIC) + if (index >= AU_THROTTLE_ALERT) { + haptic.event(index); //do this before audio to help sync timings + } +#endif + if (index <= AU_ERROR || (index >= AU_WARNING1 && index < AU_FRSKY_FIRST)) { if (g_eeGeneral.alarmsFlash) { flashCounter = FLASH_DURATION;