diff --git a/radio/src/lua/lua_api.h b/radio/src/lua/lua_api.h index dba2b8f2f..622a0f868 100644 --- a/radio/src/lua/lua_api.h +++ b/radio/src/lua/lua_api.h @@ -37,7 +37,7 @@ extern bool luaLcdAllowed; void luaInit(); void luaInitThemesAndWidgets(); - +#define LUA_INIT_THEMES_AND_WIDGETS() luaInitThemesAndWidgets() #define lua_registernumber(L, n, i) (lua_pushnumber(L, (i)), lua_setglobal(L, (n))) #define lua_registerint(L, n, i) (lua_pushinteger(L, (i)), lua_setglobal(L, (n))) @@ -147,8 +147,8 @@ void luaSetInstructionsLimit(lua_State* L, int count); void luaCompileAndSave(lua_State * L, const char *bytecodeName); #else // defined(LUA) #define luaInit() +#define LUA_INIT_THEMES_AND_WIDGETS() #define LUA_LOAD_MODEL_SCRIPTS() -#define luaLoadThemes() #endif // defined(LUA) #endif // _LUA_API_H_ diff --git a/radio/src/opentx.cpp b/radio/src/opentx.cpp index 90e4718fd..52fb46fca 100644 --- a/radio/src/opentx.cpp +++ b/radio/src/opentx.cpp @@ -2437,7 +2437,7 @@ void opentxInit(OPENTX_INIT_ARGS) #if defined(PCBHORUS) topbar = new Topbar(&g_model.topbarData); - luaInitThemesAndWidgets(); + LUA_INIT_THEMES_AND_WIDGETS(); #endif #if defined(RAMBACKUP)