bug: Default value was not added for input type VALUE

This commit is contained in:
Damjan Adamic
2014-04-27 11:24:08 +02:00
parent fbbe7e9cc6
commit 55d8a0ac8c
+1 -1
View File
@@ -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--) {