This commit is contained in:
Thomas Kunze 2019-06-02 01:39:08 +02:00
parent 6d3a8982a7
commit ad7639116a

View File

@ -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;
@ -105,4 +105,4 @@ void loop()
return;
measureTemp();
}
}