bug: Default value was not added for input type VALUE
This commit is contained in:
+1
-1
@@ -1125,7 +1125,7 @@ void luaTask(uint8_t evt)
|
|||||||
__luaGetValue((uint8_t)sd.inputs[j]);
|
__luaGetValue((uint8_t)sd.inputs[j]);
|
||||||
//lua_pushinteger(L, (uint8_t)sd.inputs[j]);
|
//lua_pushinteger(L, (uint8_t)sd.inputs[j]);
|
||||||
else
|
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) {
|
if (lua_pcall(L, sid.inputsCount, sid.outputsCount, 0) == 0) {
|
||||||
for (int j=sid.outputsCount-1; j>=0; j--) {
|
for (int j=sid.outputsCount-1; j>=0; j--) {
|
||||||
|
|||||||
Reference in New Issue
Block a user