Skip to content

Commit

Permalink
Finalize Bugfix
Browse files Browse the repository at this point in the history
Move variable closer to usage.
  • Loading branch information
Neuroquila-n8fall committed Dec 20, 2022
1 parent 3067eb3 commit dd862fc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/can_processor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ void processCan()
* Endpoint = Outside temperature at which the heating should deliver the lowest possible feed temperature. Also known as "cut-off" temperature (depends on who you are talking with about this topic ;))
**************************************/

int rawTemp;


// Take note of the last time we received a message from the boiler
if (Message.id < 0x250 || Message.id > 0x260)
Expand Down Expand Up @@ -205,6 +205,7 @@ void processCan()
// Value: (Data[0] & Data[1]) / 100.0
if (Message.id == configuration.CanAddresses.Heating.OutsideTemperature)
{
int rawTemp;
// Concat payload and divide the resulting INT by 100
for (int i = 0; i < sizeof(Message.data); i++)
{
Expand Down

0 comments on commit dd862fc

Please sign in to comment.