lua can: one step back
This commit is contained in:
parent
4c164aaf5c
commit
ed89d5da57
|
@ -80,7 +80,9 @@ static void handleCanFrame(LuaHandle& ls, CANRxFrame* frame) {
|
|||
lua_pushinteger(ls, frame->data8[i]);
|
||||
|
||||
// index is i+1 because Lua "arrays" (tables) are 1-indexed
|
||||
lua_rawseti(ls, -2, i + 1);
|
||||
// lua_rawseti(ls, -2, i + 1);
|
||||
// one step back
|
||||
lua_rawseti(ls, -2, i);
|
||||
}
|
||||
|
||||
// Perform the actual function call
|
||||
|
|
Loading…
Reference in New Issue