1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-18 13:55:12 +03:00

Re #2084: Lua model.getInput() now also returns switch

This commit is contained in:
Damjan Adamic 2015-02-18 20:25:27 +01:00
parent ab3114d164
commit b0277ed057

View file

@ -722,6 +722,7 @@ static int luaModelGetInput(lua_State *L)
lua_pushtableinteger(L, "source", expo->srcRaw); lua_pushtableinteger(L, "source", expo->srcRaw);
lua_pushtableinteger(L, "weight", expo->weight); lua_pushtableinteger(L, "weight", expo->weight);
lua_pushtableinteger(L, "offset", expo->offset); lua_pushtableinteger(L, "offset", expo->offset);
lua_pushtableinteger(L, "switch", expo->swtch);
} }
else { else {
lua_pushnil(L); lua_pushnil(L);