From 6cd183dde0108f31eaed14e203b056956b1ecc93 Mon Sep 17 00:00:00 2001 From: rusefillc Date: Fri, 30 Dec 2022 22:40:45 -0500 Subject: [PATCH] better? --- B6-temp.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/B6-temp.md b/B6-temp.md index 6c4857dc..2a2e599a 100644 --- a/B6-temp.md +++ b/B6-temp.md @@ -236,9 +236,9 @@ end canMotorInfoCounter = 0 function onMotorInfo(bus, id, dlc, data) canMotorInfoCounter = (canMotorInfoCounter + 1) % 16 - canMotorInfo[1] = 0x90 + (canMotorInfoCounter) - canMotorInfo1[1] = 0x90 + (canMotorInfoCounter) - canMotorInfo3[1] = 0x90 + (canMotorInfoCounter) + canMotorInfo[1] = 0x80 + (canMotorInfoCounter) + canMotorInfo1[1] = 0x80 + (canMotorInfoCounter) + canMotorInfo3[1] = 0x80 + (canMotorInfoCounter) mod4 = canMotorInfoCounter % 4 @@ -246,8 +246,8 @@ function onMotorInfo(bus, id, dlc, data) -- txCan(1, MOTOR_INFO, 0, canMotorInfo) txCan(TCU_BUS, id, 0, data) elseif (mod4 == 1) then --- txCan(1, MOTOR_INFO, 0, canMotorInfo1) - txCan(TCU_BUS, id, 0, data) + txCan(1, MOTOR_INFO, 0, canMotorInfo1) +-- txCan(TCU_BUS, id, 0, data) else -- txCan(1, MOTOR_INFO, 0, canMotorInfo3) txCan(TCU_BUS, id, 0, data)