Skip to content

Commit

Permalink
Merge pull request #116 from jamiejones85/master
Browse files Browse the repository at this point in the history
Fixing outlander heater bug
  • Loading branch information
damienmaguire authored Oct 2, 2024
2 parents fec9a26 + 148db54 commit 369c4b8
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/OutlanderCanHeater.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,17 +49,18 @@ void OutlanderCanHeater::Task100Ms()
bytes[6] = 0x00;
bytes[7] = 0x00;

if (currentTemperature < desiredTemperature - 5)
{
currentTemperature = Param::GetInt(Param::tmpheater);
if (currentTemperature < desiredTemperature - 5) {
bytes[2] = 0xA2;
Param::SetInt(Param::powerheater, 3000);
}
else
{
} else if (currentTemperature < desiredTemperature) {
bytes[2] = 0x32;
Param::SetInt(Param::powerheater, 1500);
} else {
Param::SetInt(Param::powerheater, 0);
}


can->Send(0x188, (uint32_t*)bytes, 8);
}
}
Expand Down

0 comments on commit 369c4b8

Please sign in to comment.