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:
parent
791b1173e3
commit
71f08998dd
5 changed files with 29 additions and 19 deletions
|
@ -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 */
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue