From 08c735d7520e858868bc2c724572139998e39ada Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Tue, 17 Feb 2015 23:31:06 +0100 Subject: o Using cursor instead of size to determine the number of bytes to write. --- LinuxBluetooth.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/LinuxBluetooth.cpp b/LinuxBluetooth.cpp index 3efa7e5..2c0bffa 100644 --- a/LinuxBluetooth.cpp +++ b/LinuxBluetooth.cpp @@ -159,8 +159,8 @@ void LinuxBluetoothDevice::discoverServices() { AttPdu::makeReadByGroupType(out, 0x0001, 0xffff, UUID_PRIMARY_SERVICE); - D << "pdu.size()=" << out.getSize(); - ssize_t written = write(l2cap, buffer, out.getSize()); + D << "pdu size=" << out.getCursor(); + ssize_t written = write(l2cap, buffer, out.getCursor()); D << "written=" << written; -- cgit v1.2.3