1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-25 17:25:13 +03:00

Flash saving (idea from er9x)

Trims2Offsets function removed as it was as full of bugs than other firmwares (total = ~1000bytes flash saved)
A "Safety CHxx" function is not applied when it is currently edited
The Stick Mode needs confirmation before being used (now edited with [MENU] edit [MENU]).
This commit is contained in:
bsongis 2012-02-27 18:52:29 +00:00
parent 0826ceada1
commit 6c1d0cab8a
16 changed files with 272 additions and 307 deletions

View file

@ -69,7 +69,6 @@ void doMainScreenGrphics()
void menuMainView(uint8_t event)
{
static bool instantTrimSwLock;
static bool trim2OfsSwLock;
uint8_t view = g_eeGeneral.view;
uint8_t view_base = view & 0x0f;
@ -157,7 +156,6 @@ void menuMainView(uint8_t event)
killEvents(KEY_UP);
killEvents(KEY_DOWN);
instantTrimSwLock = true;
trim2OfsSwLock = true;
break;
#ifdef NAVIGATION_RE1
case EVT_KEY_LONG(BTN_RE1):
@ -177,10 +175,6 @@ void menuMainView(uint8_t event)
bool trimSw = isFunctionActive(FUNC_INSTANT_TRIM);
if (!instantTrimSwLock && trimSw) instantTrim();
instantTrimSwLock = trimSw;
trimSw = isFunctionActive(FUNC_TRIMS_2_OFS);
if (!trim2OfsSwLock && trimSw) moveTrimsToOffsets();
trim2OfsSwLock = trimSw;
{
uint8_t phase = getFlightPhase();