diff options
author | Christian Kandeler <christian.kandeler@theqtcompany.com> | 2016-01-21 14:59:29 +0100 |
---|---|---|
committer | Alex Blasche <alexander.blasche@theqtcompany.com> | 2016-01-22 14:37:03 +0000 |
commit | 93ad62ca23d49501b4c3b027c0bc131b93c873b8 (patch) | |
tree | 0598cc516252c135bae028e61ace30d19f192994 /src/bluetooth | |
parent | c38c7965e7ca6454a6624b99c00c0d3551bdbe52 (diff) |
Bluetooth: Fix typo in command value.
Change-Id: Ieb903989c5ef5de924c9c4a0d31c4ef9a74e2c40
Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
Diffstat (limited to 'src/bluetooth')
-rw-r--r-- | src/bluetooth/qlowenergycontroller_bluez.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bluetooth/qlowenergycontroller_bluez.cpp b/src/bluetooth/qlowenergycontroller_bluez.cpp index 35291c97..304c1f5c 100644 --- a/src/bluetooth/qlowenergycontroller_bluez.cpp +++ b/src/bluetooth/qlowenergycontroller_bluez.cpp @@ -92,7 +92,7 @@ #define ATT_OP_HANDLE_VAL_INDICATION 0x1d //informs about value change -> requires reply #define ATT_OP_HANDLE_VAL_CONFIRMATION 0x1e //answer for ATT_OP_HANDLE_VAL_INDICATION #define ATT_OP_WRITE_COMMAND 0x52 //write characteristic without response -#define ATT_OP_SIGNED_WRITE_COMMAND 0x2D +#define ATT_OP_SIGNED_WRITE_COMMAND 0xD2 //GATT command sizes in bytes #define ERROR_RESPONSE_HEADER_SIZE 5 @@ -2426,7 +2426,7 @@ void QLowEnergyControllerPrivate::handleWriteRequestOrCommand(const QByteArray & // Spec v4.2, Vol 3, Part F, 3.4.5.1-3 const bool isRequest = packet.at(0) == ATT_OP_WRITE_REQUEST; - const bool isSigned = packet.at(0) == ATT_OP_SIGNED_WRITE_COMMAND; + const bool isSigned = quint8(packet.at(0)) == quint8(ATT_OP_SIGNED_WRITE_COMMAND); if (!checkPacketSize(packet, isSigned ? 15 : 3, mtuSize)) return; const QLowEnergyHandle handle = bt_get_le16(packet.constData() + 1); |