Conditional heater enable (#1185)

This commit is contained in:
dynfer 2024-02-23 00:23:06 +01:00 committed by GitHub
parent a1302a0cc3
commit 7879d6a3cc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -84,7 +84,7 @@ void receiveCANwbo()
outMsg.flags.extended = 1;
outMsg.len = 2;
outMsg.buf[0] = currentStatus.battery10; // We don't do any conversion since factor is 0.1 and speeduino value is x10
outMsg.buf[1] = 0x1; // Enable heater
outMsg.buf[1] = BIT_CHECK(currentStatus.engine, BIT_ENGINE_RUN) ? 0x1 : 0x0; // Enable heater once engine is running (ie. above cranking rpm), this condition can be changed to CLT above certain temp and so on.
Can0.write(outMsg);
if ((inMsg.id == 0x190 || inMsg.id == 0x192))
{