1
0
Fork 0
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:
Damjan Adamic 2014-12-08 17:51:53 +01:00
parent 55f0781bc9
commit 36a7d4732f

View file

@ -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;