Add support for pwr-on and power-off speed

This commit is contained in:
Raphael Coeffic
2019-08-16 21:02:47 +02:00
parent 8d9a7c22e6
commit 995888ae41
32 changed files with 927 additions and 739 deletions
+6 -2
View File
@@ -127,6 +127,12 @@
#define CASE_SPLASH(x)
#endif
#if defined(PWR_BUTTON_PRESS)
#define CASE_PWR_BUTTON_PRESS(x) x,
#else
#define CASE_PWR_BUTTON_PRESS(x)
#endif
#if defined(TELEMETRY_FRSKY)
#define CASE_FRSKY(x) x,
#else
@@ -293,8 +299,6 @@ void memswap(void * a, void * b, uint8_t size);
#define pwrOffPressed() (!pwrPressed())
#endif
#define PWR_PRESS_SHUTDOWN_DELAY 300 // 3s
#define GET_LOWRES_POT_POSITION(i) (getValue(MIXSRC_FIRST_POT+(i)) >> 4)
#define SAVE_POT_POSITION(i) g_model.potsWarnPosition[i] = GET_LOWRES_POT_POSITION(i)