mirror of
https://github.com/opentx/opentx.git
synced 2025-07-23 08:15:17 +03:00
Backup before 10bits trims function merge (instead of 8bits + subtrims)
This commit is contained in:
parent
f0fca34b7e
commit
af73d05bbd
21 changed files with 560 additions and 122 deletions
|
@ -48,7 +48,6 @@ void menuMainView(uint8_t event)
|
|||
{
|
||||
static uint8_t switchView = 255;
|
||||
static bool instantTrimSwLock;
|
||||
static bool trim2OfsSwLock;
|
||||
|
||||
uint8_t view = (switchView == 255 ? g_eeGeneral.view : switchView);
|
||||
|
||||
|
@ -146,7 +145,6 @@ void menuMainView(uint8_t event)
|
|||
killEvents(KEY_UP);
|
||||
killEvents(KEY_DOWN);
|
||||
instantTrimSwLock = true;
|
||||
trim2OfsSwLock = true;
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -154,10 +152,6 @@ void menuMainView(uint8_t event)
|
|||
if (!instantTrimSwLock && trimSw) instantTrim();
|
||||
instantTrimSwLock = trimSw;
|
||||
|
||||
trimSw = isFunctionActive(FUNC_TRIMS_2_OFS);
|
||||
if (!trim2OfsSwLock && trimSw) moveTrimsToOffsets();
|
||||
trim2OfsSwLock = trimSw;
|
||||
|
||||
if (view == e_telemetry+ALTERNATE) {
|
||||
putsModelName(0, 0, g_model.name, g_eeGeneral.currModel, 0);
|
||||
uint8_t att = (g_vbat100mV < g_eeGeneral.vBatWarn ? BLINK : 0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue