[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:
Bertrand Songis
2016-05-13 14:41:48 +02:00
parent 24abad55ca
commit 7908eaa406
82 changed files with 749 additions and 598 deletions
+9 -3
View File
@@ -448,11 +448,17 @@ enum SwashType {
#endif
#if defined(CPUARM)
#define IS_MANUAL_RESET_TIMER(idx) (g_model.timers[idx].persistent == 2)
#define IS_MANUAL_RESET_TIMER(idx) (g_model.timers[idx].persistent == 2)
#elif defined(CPUM2560)
#define IS_MANUAL_RESET_TIMER(idx) (g_model.timers[idx].persistent == 2)
#define IS_MANUAL_RESET_TIMER(idx) (g_model.timers[idx].persistent == 2)
#else
#define IS_MANUAL_RESET_TIMER(idx) 0
#define IS_MANUAL_RESET_TIMER(idx) 0
#endif
#if defined(CPUARM) && !defined(PCBSKY9X)
#define TIMER_COUNTDOWN_START(x) (g_model.timers[x].countdownStart > 0 ? 5 : 10 - g_model.timers[x].countdownStart * 10)
#else
#define TIMER_COUNTDOWN_START(x) 10
#endif
enum Protocols {