Skip to content

Commit

Permalink
Conditional heater enable (speeduino#1185)
Browse files Browse the repository at this point in the history
  • Loading branch information
dynfer authored Feb 22, 2024
1 parent a1302a0 commit 7879d6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion speeduino/comms_CAN.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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))
{
Expand Down

0 comments on commit 7879d6a

Please sign in to comment.