1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-24 08:45:24 +03:00

Compilation fixes (thanks to Jenkins)

This commit is contained in:
Damjan Adamic 2014-12-07 17:12:51 +01:00
parent 62f2a321f2
commit f0cd4fbe8d
2 changed files with 2 additions and 4 deletions

View file

@ -121,9 +121,7 @@
#define LUA_LOAD_MODEL_SCRIPTS() #define LUA_LOAD_MODEL_SCRIPTS()
#define LUA_LOAD_MODEL_SCRIPT(idx) #define LUA_LOAD_MODEL_SCRIPT(idx)
#define LUA_STANDALONE_SCRIPT_RUNNING() (0) #define LUA_STANDALONE_SCRIPT_RUNNING() (0)
#define luaRunNonGuiScripts() #define luaTask(evt, scriptType, allowLcdUsage) (false)
#define luaRunGuiScripts(evt) (false)
#define luaAllowLcdUsage(allow)
#endif #endif
#endif // #ifndef luaapi_h #endif // #ifndef luaapi_h

View file

@ -129,7 +129,7 @@ void perMain()
#endif #endif
// run Lua scripts that don't use LCD (to use CPU time while LCD DMA is running) // 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 // wait for LCD DMA to finish before continuing, because code from this point
// is allowed to change the contents of LCD buffer // is allowed to change the contents of LCD buffer