From 36a7d4732fef345df44b85e2f4486b008cf91e43 Mon Sep 17 00:00:00 2001 From: Damjan Adamic Date: Mon, 8 Dec 2014 17:51:53 +0100 Subject: [PATCH] luaDoOneRunPermanentScript() param optimization, todo for luaLcdLock() removal --- radio/src/lua_api.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/radio/src/lua_api.cpp b/radio/src/lua_api.cpp index e8abbbac5..712876b63 100644 --- a/radio/src/lua_api.cpp +++ b/radio/src/lua_api.cpp @@ -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;