From 55d8a0ac8cceda0faf2dcc3e4a6bb96e22f1df61 Mon Sep 17 00:00:00 2001 From: Damjan Adamic Date: Sun, 27 Apr 2014 11:24:08 +0200 Subject: [PATCH] bug: Default value was not added for input type VALUE --- radio/src/lua.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radio/src/lua.cpp b/radio/src/lua.cpp index 9970298c7..f6863ee6d 100644 --- a/radio/src/lua.cpp +++ b/radio/src/lua.cpp @@ -1125,7 +1125,7 @@ void luaTask(uint8_t evt) __luaGetValue((uint8_t)sd.inputs[j]); //lua_pushinteger(L, (uint8_t)sd.inputs[j]); else - lua_pushinteger(L, sd.inputs[j]); + lua_pushinteger(L, sd.inputs[j] + sid.inputs[j].def); } if (lua_pcall(L, sid.inputsCount, sid.outputsCount, 0) == 0) { for (int j=sid.outputsCount-1; j>=0; j--) {