mirror of
https://github.com/thelsing/knx.git
synced 2024-12-18 19:08:18 +01:00
fix
This commit is contained in:
parent
6d3a8982a7
commit
ad7639116a
@ -27,25 +27,25 @@ void measureTemp()
|
|||||||
currentValue *= 100 * 100;
|
currentValue *= 100 * 100;
|
||||||
|
|
||||||
// write new value to groupobject
|
// write new value to groupobject
|
||||||
goCurrent.objectWriteFloatDpt9(currentValue);
|
goCurrent.value(currentValue);
|
||||||
|
|
||||||
if (currentValue > maxValue)
|
if (currentValue > maxValue)
|
||||||
{
|
{
|
||||||
maxValue = currentValue;
|
maxValue = currentValue;
|
||||||
goMax.objectWriteFloatDpt9(maxValue);
|
goMax.value(maxValue);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (currentValue < minValue)
|
if (currentValue < minValue)
|
||||||
{
|
{
|
||||||
minValue = currentValue;
|
minValue = currentValue;
|
||||||
goMin.objectWriteFloatDpt9(minValue);
|
goMin.value(minValue);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// callback from reset-GO
|
// callback from reset-GO
|
||||||
void resetCallback(GroupObject& go)
|
void resetCallback(GroupObject& go)
|
||||||
{
|
{
|
||||||
if (go.objectReadBool())
|
if (go.value().boolValue())
|
||||||
{
|
{
|
||||||
maxValue = 0;
|
maxValue = 0;
|
||||||
minValue = 10000;
|
minValue = 10000;
|
||||||
@ -105,4 +105,4 @@ void loop()
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
measureTemp();
|
measureTemp();
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user