Haptic events
This commit is contained in:
@@ -115,6 +115,8 @@ void hapticQueue::event(uint8_t e)
|
||||
play(15, 3, PLAY_NOW);
|
||||
else if (e < AU_FRSKY_FIRST)
|
||||
play(15, 3, (e-AU_TIMER_10)|PLAY_NOW);
|
||||
else if (e >= AU_FRSKY_LAST)
|
||||
play(15, 3, e-AU_FRSKY_LAST);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -1432,7 +1432,7 @@ void evalFunctions()
|
||||
|
||||
#if defined(HAPTIC)
|
||||
if (sd->func == FUNC_HAPTIC) {
|
||||
haptic.event(sd->param);
|
||||
haptic.event(AU_FRSKY_LAST+sd->param);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user