1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-15 20:35:17 +03:00

[Horus] No more errors in Lua interface compilation

This commit is contained in:
Bertrand Songis 2015-11-25 21:38:05 +01:00
parent 791b1173e3
commit 71f08998dd
5 changed files with 29 additions and 19 deletions

View file

@ -538,6 +538,7 @@ static int luaKillEvents(lua_State *L)
return 0;
}
#if !defined(COLORLCD)
/*luadoc
@function GREY()
@ -552,6 +553,7 @@ static int luaGrey(lua_State *L)
lua_pushunsigned(L, GREY(index));
return 1;
}
#endif
/*luadoc
@function getGeneralSettings()
@ -686,7 +688,9 @@ const luaL_Reg opentxLib[] = {
{ "defaultStick", luaDefaultStick },
{ "defaultChannel", luaDefaultChannel },
{ "killEvents", luaKillEvents },
#if !defined(COLORLCD)
{ "GREY", luaGrey },
#endif
{ NULL, NULL } /* sentinel */
};