mirror of
https://github.com/opentx/opentx.git
synced 2025-07-19 06:15:10 +03:00
Enable permanent scripts on Horus
This commit is contained in:
parent
4513cf89f2
commit
4f24088719
1 changed files with 1 additions and 2 deletions
|
@ -330,7 +330,6 @@ bool luaLoadMixScript(uint8_t index)
|
|||
bool luaLoadFunctionScript(uint8_t index)
|
||||
{
|
||||
CustomFunctionData & fn = g_model.customFn[index];
|
||||
|
||||
if (fn.func == FUNC_PLAY_SCRIPT && ZEXIST(fn.play.name)) {
|
||||
if (luaScriptsCount < MAX_SCRIPTS) {
|
||||
ScriptInternalData & sid = scriptInternalData[luaScriptsCount++];
|
||||
|
@ -739,9 +738,9 @@ bool luaTask(event_t evt, uint8_t scriptType, bool allowLcdUsage)
|
|||
#if !defined(COLORLCD)
|
||||
luaInit();
|
||||
if (luaState == INTERPRETER_PANIC) return false;
|
||||
#endif
|
||||
luaLoadPermanentScripts();
|
||||
if (luaState == INTERPRETER_PANIC) return false;
|
||||
#endif
|
||||
}
|
||||
|
||||
for (int i=0; i<luaScriptsCount; i++) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue