[ARM boards] Haptic was broken on 'next'

This commit is contained in:
bsongis
2015-03-30 00:18:26 +02:00
parent 16c04b5ef7
commit 4e6bc9db2f
+6
View File
@@ -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;