Lua: onCanRx parameter value to be use Lua-indexing fix #7110

This commit is contained in:
rusefillc 2024-11-30 17:27:18 -05:00
parent 67dac0c868
commit 0d87acc8a4
2 changed files with 4 additions and 1 deletions

View File

@ -36,6 +36,9 @@ Release template (copy/paste this for new release):
- Critical error when using big values on Boost Control Open Loop with Y axis as MAP #7093 - Critical error when using big values on Boost Control Open Loop with Y axis as MAP #7093
- "Baro Correction" axis label - "Baro Correction" axis label
### Breaking Changes
- Lua: onCanRx parameter value to be use Lua-indexing #7110
## November 2024 "Day 998" ## November 2024 "Day 998"
### Added ### Added

View File

@ -97,7 +97,7 @@ static void handleCanFrame(LuaHandle& ls, CanFrameData* data) {
auto dlc = data->Frame.DLC; auto dlc = data->Frame.DLC;
// Push bus, ID and DLC // Push bus, ID and DLC
lua_pushinteger(ls, data->BusIndex); lua_pushinteger(ls, HUMAN_OFFSET + data->BusIndex);
lua_pushinteger(ls, CAN_ID(data->Frame)); lua_pushinteger(ls, CAN_ID(data->Frame));
lua_pushinteger(ls, dlc); lua_pushinteger(ls, dlc);