diff options
-rw-r--r-- | LinuxBluetooth.cpp | 4 |
1 files 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; |