[All] Code refactoring
- keys beep and haptic refactoring (not anymore audio events) - trims move/mid/min/max refactoring (trim end splitted to trim min / trim max) - S6R new alarms - S6R servos/rx status displayed as a text (not an integer which has no sense) - Timer countdown configuration - The splash was not displayed (but the timeout was there) after the first calibration
This commit is contained in:
@@ -94,15 +94,11 @@ void hapticQueue::play(uint8_t tLen, uint8_t tPause, uint8_t tFlags)
|
||||
|
||||
void hapticQueue::event(uint8_t e)
|
||||
{
|
||||
if (g_eeGeneral.hapticMode>0 || (g_eeGeneral.hapticMode==0 && e>=AU_WARNING1) || (g_eeGeneral.hapticMode>=-1 && e<=AU_ERROR)) {
|
||||
if (g_eeGeneral.hapticMode >= e_mode_nokeys || (g_eeGeneral.hapticMode >= e_mode_alarms && e <= AU_ERROR)) {
|
||||
if (e <= AU_ERROR)
|
||||
play(15, 3, PLAY_NOW);
|
||||
else if (e <= AU_TRIM_MOVE)
|
||||
play(5, 0, PLAY_NOW);
|
||||
else if (e <= AU_TIMER_LT10)
|
||||
else if (e <= AU_MIX_WARNING_3)
|
||||
play(15, 3, PLAY_NOW);
|
||||
else if (e < AU_SPECIAL_SOUND_FIRST)
|
||||
play(15, 3, (e-AU_TIMER_20+1)|PLAY_NOW);
|
||||
else if (e >= AU_SPECIAL_SOUND_LAST && empty()) {
|
||||
play(30, 10, 0);
|
||||
play(10, 50-10*(e-AU_SPECIAL_SOUND_LAST), (e-AU_SPECIAL_SOUND_LAST));
|
||||
|
||||
Reference in New Issue
Block a user