only rename method

This commit is contained in:
rusEFI LLC 2024-06-30 19:01:18 -04:00
parent 741cf928ca
commit eb592e21d9
1 changed files with 2 additions and 2 deletions

View File

@ -69,7 +69,7 @@ ECU_BUS = 1
-- really 'not ECU'
TCU_BUS = 2
function setTwoBytes(data, offset, value)
function setTwoBytesLsb(data, offset, value)
value = math.floor(value)
data[offset + 2] = value >> 8
data[offset + 1] = value & 0xff
@ -140,7 +140,7 @@ function onMotor1(bus, id, dlc, data)
requestedTorque = fakeTorque
motor1Data[2] = engineTorque / 0.39
setTwoBytes(motor1Data, 2, rpm / 0.25)
setTwoBytesLsb(motor1Data, 2, rpm / 0.25)
motor1Data[5] = innerTorqWithoutExt / 0.4
motor1Data[6] = tps / 0.4
motor1Data[7] = torqueLoss / 0.39