Lua: onCanRx parameter value to be use Lua-indexing fix #7110
This commit is contained in:
parent
67dac0c868
commit
0d87acc8a4
|
@ -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
|
||||
- "Baro Correction" axis label
|
||||
|
||||
### Breaking Changes
|
||||
- Lua: onCanRx parameter value to be use Lua-indexing #7110
|
||||
|
||||
## November 2024 "Day 998"
|
||||
|
||||
### Added
|
||||
|
|
|
@ -97,7 +97,7 @@ static void handleCanFrame(LuaHandle& ls, CanFrameData* data) {
|
|||
auto dlc = data->Frame.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, dlc);
|
||||
|
||||
|
|
Loading…
Reference in New Issue