Skip to content

Commit

Permalink
Merge branch 'master' into Update-Shutdown-Delay
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom-evnut authored Oct 30, 2024
2 parents 43a11d3 + 369c4b8 commit f1367e0
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 f1367e0

Please sign in to comment.