[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:
@@ -49,15 +49,10 @@ void timerSet(int idx, int16_t val)
|
||||
|
||||
void initModelTimer(uint32_t idx, uint8_t mode, int16_t start = 0)
|
||||
{
|
||||
memset(g_model.timers[0], 0, sizeof(g_model.timers[0]));
|
||||
g_model.timers[0].mode = mode;
|
||||
g_model.timers[0].start = start;
|
||||
g_model.timers[0].countdownBeep = COUNTDOWN_SILENT;
|
||||
g_model.timers[0].minuteBeep = 0;
|
||||
g_model.timers[0].spare = 0;
|
||||
#if defined(CPUARM) || defined(CPUM2560)
|
||||
g_model.timers[0].persistent = 0;
|
||||
g_model.timers[0].value = 0;
|
||||
#endif
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user