mirror of
https://github.com/opentx/opentx.git
synced 2025-07-19 06:15:10 +03:00
luaDoOneRunPermanentScript() param optimization, todo for luaLcdLock() removal
This commit is contained in:
parent
55f0781bc9
commit
36a7d4732f
1 changed files with 3 additions and 1 deletions
|
@ -344,6 +344,8 @@ static int luaGetGeneralSettings(lua_State *L)
|
|||
|
||||
static int luaLcdLock(lua_State *L)
|
||||
{
|
||||
// disabled in opentx 2.1
|
||||
// TODO: remove this function completely in opentx 2.2
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -1831,7 +1833,7 @@ void luaDoOneRunStandalone(uint8_t evt)
|
|||
}
|
||||
}
|
||||
|
||||
bool luaDoOneRunPermanentScript(uint8_t evt, int i, uint8_t scriptType)
|
||||
bool luaDoOneRunPermanentScript(uint8_t evt, int i, uint32_t scriptType)
|
||||
{
|
||||
ScriptInternalData & sid = scriptInternalData[i];
|
||||
if (sid.state != SCRIPT_OK) return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue