1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-23 00:05:17 +03:00

Haptic events

This commit is contained in:
bsongis 2012-05-03 20:51:14 +00:00
parent 65c6dddf98
commit 82dbdb523b
2 changed files with 3 additions and 1 deletions

View file

@ -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);
}
}

View file

@ -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