fix(lua): Do not pass key event that triggered telemetry view to lua (#4168)
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user