diff --git a/radio/src/lua_api.h b/radio/src/lua_api.h index d3e041253..f461329fb 100644 --- a/radio/src/lua_api.h +++ b/radio/src/lua_api.h @@ -121,9 +121,7 @@ #define LUA_LOAD_MODEL_SCRIPTS() #define LUA_LOAD_MODEL_SCRIPT(idx) #define LUA_STANDALONE_SCRIPT_RUNNING() (0) - #define luaRunNonGuiScripts() - #define luaRunGuiScripts(evt) (false) - #define luaAllowLcdUsage(allow) + #define luaTask(evt, scriptType, allowLcdUsage) (false) #endif #endif // #ifndef luaapi_h diff --git a/radio/src/main_arm.cpp b/radio/src/main_arm.cpp index df789d239..862af5d33 100644 --- a/radio/src/main_arm.cpp +++ b/radio/src/main_arm.cpp @@ -129,7 +129,7 @@ void perMain() #endif // run Lua scripts that don't use LCD (to use CPU time while LCD DMA is running) - luaTask(0, RUN_MIX_SCRIPT | RUN_FUNC_SCRIPT | RUN_TELEM_BG_SCRIPT, false); + (void)luaTask(0, RUN_MIX_SCRIPT | RUN_FUNC_SCRIPT | RUN_TELEM_BG_SCRIPT, false); // wait for LCD DMA to finish before continuing, because code from this point // is allowed to change the contents of LCD buffer