From b0277ed057deed8f27e3f4fda262d2a5d78ecee6 Mon Sep 17 00:00:00 2001 From: Damjan Adamic Date: Wed, 18 Feb 2015 20:25:27 +0100 Subject: [PATCH] Re #2084: Lua model.getInput() now also returns switch --- radio/src/lua_api.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/radio/src/lua_api.cpp b/radio/src/lua_api.cpp index f37fc7ab4..8587c2ea5 100644 --- a/radio/src/lua_api.cpp +++ b/radio/src/lua_api.cpp @@ -722,6 +722,7 @@ static int luaModelGetInput(lua_State *L) lua_pushtableinteger(L, "source", expo->srcRaw); lua_pushtableinteger(L, "weight", expo->weight); lua_pushtableinteger(L, "offset", expo->offset); + lua_pushtableinteger(L, "switch", expo->swtch); } else { lua_pushnil(L);