From 716e886d437386fc0bc9d0d61f178a23587c6e1f Mon Sep 17 00:00:00 2001 From: Javier Date: Tue, 20 May 2014 02:02:49 +0200 Subject: fix unintended size in output --- gatoattclient.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'gatoattclient.cpp') diff --git a/gatoattclient.cpp b/gatoattclient.cpp index 54e2212..6cf6d69 100644 --- a/gatoattclient.cpp +++ b/gatoattclient.cpp @@ -184,7 +184,8 @@ uint GatoAttClient::requestReadByType(GatoHandle start, GatoHandle end, const Ga QByteArray data; QDataStream s(&data, QIODevice::WriteOnly); s.setByteOrder(QDataStream::LittleEndian); - s << start << end << gatouuid_to_bytearray(uuid, true, false); + s << start << end; + write_gatouuid(s, uuid, true, false); return request(AttOpReadByTypeRequest, data, receiver, member); } @@ -204,7 +205,8 @@ uint GatoAttClient::requestReadByGroupType(GatoHandle start, GatoHandle end, con QByteArray data; QDataStream s(&data, QIODevice::WriteOnly); s.setByteOrder(QDataStream::LittleEndian); - s << start << end << gatouuid_to_bytearray(uuid, true, false); + s << start << end; + write_gatouuid(s, uuid, true, false); return request(AttOpReadByGroupTypeRequest, data, receiver, member); } -- cgit v1.2.3