From ad7639116aa1781f9bce45c13e7b6d1948618232 Mon Sep 17 00:00:00 2001 From: Thomas Kunze Date: Sun, 2 Jun 2019 01:39:08 +0200 Subject: [PATCH] fix --- examples/knx-demo/knx-demo.ino | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/knx-demo/knx-demo.ino b/examples/knx-demo/knx-demo.ino index 13f4068..747eeb3 100644 --- a/examples/knx-demo/knx-demo.ino +++ b/examples/knx-demo/knx-demo.ino @@ -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(); -} +} \ No newline at end of file