Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix
  • Loading branch information
thelsing committed Jun 1, 2019
1 parent 6d3a898 commit ad76391
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions examples/knx-demo/knx-demo.ino
Expand Up @@ -27,25 +27,25 @@ void measureTemp()
currentValue *= 100 * 100;

// write new value to groupobject
goCurrent.objectWriteFloatDpt9(currentValue);
goCurrent.value(currentValue);

if (currentValue > maxValue)
{
maxValue = currentValue;
goMax.objectWriteFloatDpt9(maxValue);
goMax.value(maxValue);
}

if (currentValue < minValue)
{
minValue = currentValue;
goMin.objectWriteFloatDpt9(minValue);
goMin.value(minValue);
}
}

// callback from reset-GO
void resetCallback(GroupObject& go)
{
if (go.objectReadBool())
if (go.value().boolValue())
{
maxValue = 0;
minValue = 10000;
Expand Down Expand Up @@ -105,4 +105,4 @@ void loop()
return;

measureTemp();
}
}

0 comments on commit ad76391

Please sign in to comment.