mirror of
https://github.com/opentx/opentx.git
synced 2025-07-24 00:35:18 +03:00
GUI simplification. Needs to be reviewed, but it is better on Horus like this
This commit is contained in:
parent
aa7c320821
commit
0bad169008
1 changed files with 4 additions and 6 deletions
|
@ -118,10 +118,9 @@ void guiMain(evt_t evt)
|
|||
// draw LCD from menus or from Lua script
|
||||
// run Lua scripts that use LCD
|
||||
|
||||
bool standaloneScriptWasRun = luaTask(evt, RUN_STNDAL_SCRIPT, true);
|
||||
if (!standaloneScriptWasRun) {
|
||||
luaTask(evt, RUN_TELEM_FG_SCRIPT, true);
|
||||
refreshNeeded = true;
|
||||
refreshNeeded = luaTask(evt, RUN_STNDAL_SCRIPT, true);
|
||||
if (!refreshNeeded) {
|
||||
refreshNeeded = luaTask(evt, RUN_TELEM_FG_SCRIPT, true);
|
||||
}
|
||||
|
||||
t0 = get_tmr10ms() - t0;
|
||||
|
@ -130,10 +129,9 @@ void guiMain(evt_t evt)
|
|||
}
|
||||
#else
|
||||
lcdRefreshWait(); // WARNING: make sure no code above this line does any change to the LCD display buffer!
|
||||
const bool standaloneScriptWasRun = false;
|
||||
#endif
|
||||
|
||||
if (!standaloneScriptWasRun) {
|
||||
if (!refreshNeeded) {
|
||||
while (1) {
|
||||
// normal GUI from menus
|
||||
const char * warn = warningText;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue