only:do not relay EXT
This commit is contained in:
parent
1eb716fd57
commit
7981c0fa64
|
@ -49,7 +49,9 @@ end
|
||||||
function onAnythingFromECU(bus, id, dlc, data)
|
function onAnythingFromECU(bus, id, dlc, data)
|
||||||
totalEcuMessages = totalEcuMessages + 1
|
totalEcuMessages = totalEcuMessages + 1
|
||||||
print('from ECU ' .. id .. " " .. arrayToString(data) .. " dropped=" .. totalDropped .. " replaced " .. totalReplaced)
|
print('from ECU ' .. id .. " " .. arrayToString(data) .. " dropped=" .. totalDropped .. " replaced " .. totalReplaced)
|
||||||
|
if id < 2048 then
|
||||||
txCan(TCU_BUS, id, 0, data) -- relay non-TCU message to TCU
|
txCan(TCU_BUS, id, 0, data) -- relay non-TCU message to TCU
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function onAnythingFromTCU(bus, id, dlc, data)
|
function onAnythingFromTCU(bus, id, dlc, data)
|
||||||
|
|
Loading…
Reference in New Issue