mirror of
https://github.com/opentx/opentx.git
synced 2025-07-24 16:55:20 +03:00
Bsongis/horus flash external device (#4446)
* CMake options changed to UNEXPECTED_SHUTDOWN=YES/NO and PWR_BUTTON=PRESS/SWITCH * [X12S / X10] Flash an external device is now OK
This commit is contained in:
parent
808d7749c7
commit
b9bb831b7f
25 changed files with 107 additions and 158 deletions
|
@ -324,11 +324,14 @@ void memswap(void * a, void * b, uint8_t size);
|
|||
#define IS_MULTIPOS_CALIBRATED(cal) (false)
|
||||
#endif
|
||||
|
||||
#if defined(PCBFLAMENCO) || defined(PCBHORUS) || defined(PCBX9E) || defined(PCBX7)
|
||||
#define PWR_BUTTON_DELAY
|
||||
#define PWR_PRESS_SHUTDOWN 300 // 3s
|
||||
#if defined(PWR_BUTTON_PRESS)
|
||||
#define pwrOffPressed() pwrPressed()
|
||||
#else
|
||||
#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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue