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:
parent
be5ed503be
commit
36409c37f4
1 changed files with 1 additions and 1 deletions
|
@ -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]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue