Revert "lua can: one step back"

This reverts commit ed89d5da
This commit is contained in:
rusefi 2021-10-29 16:32:41 -04:00
parent d51521efe4
commit c3bfaeb63c
1 changed files with 1 additions and 3 deletions

View File

@ -80,9 +80,7 @@ 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);
// one step back
lua_rawseti(ls, -2, i);
lua_rawseti(ls, -2, i + 1);
}
// Perform the actual function call