summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorKarsten Heimrich <karsten.heimrich@qt.io>2018-03-07 17:28:42 +0100
committerKarsten Heimrich <karsten.heimrich@qt.io>2018-03-09 10:23:55 +0000
commitabb03252c1524d2f3c451c09cb7a40ea9a99bbfc (patch)
tree06673ca928344bae0c71ba63c855f3d547995775 /examples
parent1bafb23624b600cc87664905c55b283d7209be97 (diff)
Remove the dependency on QKnxNetIpPayload, use QKnxByteArray
* Add some more TODO's to the code and auto-test Change-Id: Ia0bae03f55fc51463686bd9d7b75f5ed122e5ffb Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'examples')
-rw-r--r--examples/knx/demo/demodatapoint.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/knx/demo/demodatapoint.cpp b/examples/knx/demo/demodatapoint.cpp
index af7f4f8..21a1d05 100644
--- a/examples/knx/demo/demodatapoint.cpp
+++ b/examples/knx/demo/demodatapoint.cpp
@@ -62,7 +62,7 @@ const QKnxByteArray DemoDataPoint::BytesOff { 0x00 };
bool DemoSwitchDataPoint::updateDataPointState(const QKnxLinkLayerFrame &frame)
{
- m_state = frame.serviceInformation().bytes().endsWith(1);
+ m_state = frame.serviceInformation().endsWith(1);
return true;
}
@@ -156,7 +156,7 @@ bool DemoColorLed::isOn() const
bool DemoRockerDataPoint::updateDataPointState(const QKnxLinkLayerFrame &frame)
{
- auto bytes = frame.serviceInformation().bytes();
+ auto bytes = frame.serviceInformation();
QString s = QByteArray((const char *) bytes.constData(), bytes.size()).mid(20, 4);
bool ok;
setPosition(s.toInt(&ok, 16));