From c3bfaeb63cebd01ef80e7594c80be84e3c659f58 Mon Sep 17 00:00:00 2001 From: rusefi Date: Fri, 29 Oct 2021 16:32:41 -0400 Subject: [PATCH] Revert "lua can: one step back" This reverts commit ed89d5da --- firmware/controllers/lua/lua_can_rx.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/firmware/controllers/lua/lua_can_rx.cpp b/firmware/controllers/lua/lua_can_rx.cpp index 3c3f6e614f..979140d5ae 100644 --- a/firmware/controllers/lua/lua_can_rx.cpp +++ b/firmware/controllers/lua/lua_can_rx.cpp @@ -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