fix(lua): Do not pass key event that triggered telemetry view to lua (#4168)

This commit is contained in:
bug400
2023-11-07 09:08:31 +10:00
committed by GitHub
parent 3051f70625
commit 926dc36d51
4 changed files with 18 additions and 14 deletions
+1 -4
View File
@@ -1255,14 +1255,11 @@ static bool resumeLua(bool init, bool allowLcdUsage)
} //resumeLua(...)
bool luaTask(event_t evt, bool allowLcdUsage)
bool luaTask(bool allowLcdUsage)
{
bool init = false;
bool scriptWasRun = false;
// Add event to buffer
if (evt != 0) { luaPushEvent(evt); }
// For preemption
luaCycleStart = get_tmr10ms();
+1 -1
View File
@@ -189,7 +189,7 @@ extern ScriptInternalData scriptInternalData[MAX_SCRIPTS];
extern ScriptInputsOutputs scriptInputsOutputs[MAX_SCRIPTS];
void luaClose(lua_State ** L);
bool luaTask(event_t evt, bool allowLcdUsage);
bool luaTask(bool allowLcdUsage);
void checkLuaMemoryUsage();
void luaExec(const char * filename);
void luaDoGc(lua_State * L, bool full);