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

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

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--) {