mirror of
https://github.com/opentx/opentx.git
synced 2025-07-20 14:55:13 +03:00
Inputs / Mixers screens rearrangement / bugfixes
This commit is contained in:
parent
47b79b16ba
commit
8c59a196c7
22 changed files with 98 additions and 92 deletions
|
@ -517,7 +517,7 @@ static int luaModelDeleteMix(lua_State *L)
|
|||
static int luaModelGetLogicalSwitch(lua_State *L)
|
||||
{
|
||||
int idx = luaL_checkunsigned(L, 1);
|
||||
if (idx < NUM_CSW) {
|
||||
if (idx < NUM_LOGICAL_SWITCH) {
|
||||
LogicalSwitchData * sw = cswAddress(idx);
|
||||
lua_newtable(L);
|
||||
lua_pushtablenumber(L, "function", sw->func);
|
||||
|
@ -537,7 +537,7 @@ static int luaModelGetLogicalSwitch(lua_State *L)
|
|||
static int luaModelSetLogicalSwitch(lua_State *L)
|
||||
{
|
||||
int idx = luaL_checkunsigned(L, 1);
|
||||
if (idx < NUM_CSW) {
|
||||
if (idx < NUM_LOGICAL_SWITCH) {
|
||||
LogicalSwitchData * sw = cswAddress(idx);
|
||||
luaL_checktype(L, -1, LUA_TTABLE);
|
||||
for (lua_pushnil(L); lua_next(L, -2); lua_pop(L, 1)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue