Cosmetic changes (thanks to Bertrand's review)
This commit is contained in:
@@ -1990,7 +1990,8 @@ void luaRunNonGuiScripts()
|
|||||||
lastRunTime = get_tmr10ms() - t0;
|
lastRunTime = get_tmr10ms() - t0;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool luaRunGuiScripts(uint8_t evt){
|
bool luaRunGuiScripts(uint8_t evt)
|
||||||
|
{
|
||||||
//execute one cycle of Lua scripts that use LCD
|
//execute one cycle of Lua scripts that use LCD
|
||||||
//either stand-alone or other (telemetry scripts)
|
//either stand-alone or other (telemetry scripts)
|
||||||
|
|
||||||
|
|||||||
@@ -288,11 +288,10 @@ void menusTask(void * pdata)
|
|||||||
perMainArm();
|
perMainArm();
|
||||||
// TODO remove completely massstorage from sky9x firmware
|
// TODO remove completely massstorage from sky9x firmware
|
||||||
U32 runtime = (U32)(CoGetOSTime() - start);
|
U32 runtime = (U32)(CoGetOSTime() - start);
|
||||||
if (runtime >= MENU_TASK_PERIOD_TICKS) {
|
// deduct the thread run-time from the wait, if run-time was more than
|
||||||
//no delay
|
// desired period, then skip the wait all together
|
||||||
}
|
if (runtime < MENU_TASK_PERIOD_TICKS) {
|
||||||
else {
|
CoTickDelay(MENU_TASK_PERIOD_TICKS - runtime);
|
||||||
CoTickDelay(MENU_TASK_PERIOD_TICKS - runtime); // 5*2ms for now
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user