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

SOURCE type input for model scripts missing getValue()

This commit is contained in:
Damjan Adamic 2014-04-21 17:21:02 +02:00
parent be5ed503be
commit 36409c37f4

View file

@ -1064,7 +1064,7 @@ void luaTask(uint8_t evt)
lua_rawgeti(L, LUA_REGISTRYINDEX, sid.run); lua_rawgeti(L, LUA_REGISTRYINDEX, sid.run);
for (int j=0; j<sid.inputsCount; j++) { for (int j=0; j<sid.inputsCount; j++) {
if (sid.inputs[j].type == 1) if (sid.inputs[j].type == 1)
lua_pushinteger(L, (uint8_t)sd.inputs[j]); lua_pushinteger(L, getValue((uint8_t)sd.inputs[j]));
else else
lua_pushinteger(L, sd.inputs[j]); lua_pushinteger(L, sd.inputs[j]);
} }