lua can: one step back

This commit is contained in:
rusefi 2021-10-29 13:14:42 -04:00
parent 4c164aaf5c
commit ed89d5da57
1 changed files with 3 additions and 1 deletions

View File

@ -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