Update B6-temp.md

This commit is contained in:
rusefillc 2022-09-18 00:34:57 -04:00 committed by GitHub
parent e70454024b
commit 07fb4ea760
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -150,6 +150,8 @@ function onMotor3(bus, id, dlc, data)
end
function onMotor5(bus, id, dlc, data)
setBitRange(motor5Data, 5, 9, fuelCounter)
xorChecksum(motor5Data, 8)
txCan(TCU_BUS, id, 0, motor5Data)
end
@ -171,7 +173,7 @@ end
canRxAdd(ECU_BUS, MOTOR_1, onMotor1)
canRxAdd(ECU_BUS, MOTOR_3, onMotor3)
canRxAdd(ECU_BUS, MOTOR_5, onMotor3)
canRxAdd(ECU_BUS, MOTOR_5, onMotor5)
canRxAdd(ECU_BUS, MOTOR_INFO, printAndDrop)
canRxAdd(ECU_BUS, MOTOR_6, printAndDrop)
canRxAdd(ECU_BUS, MOTOR_7, printAndDrop)