diff options
author | Alex Blasche <alexander.blasche@qt.io> | 2019-01-08 10:52:41 +0100 |
---|---|---|
committer | Alex Blasche <alexander.blasche@qt.io> | 2019-01-08 15:19:44 +0000 |
commit | 45608abda7b9470ec0b3ea26e849ec71b637288d (patch) | |
tree | 1e689ccb6dbd35f601cb37764961da3e2a3dda62 | |
parent | 99b308ab5488e5cfa77f5078eebc2fa9387217b8 (diff) | |
download | qtconnectivity-45608abda7b9470ec0b3ea26e849ec71b637288d.tar.gz |
Don't reverse uuids which are derived from Bluetooth's base uuid
The related bug only happens for custom uuids.
Fixes: QTBUG-72681
Change-Id: I22d87b84bf3958ecce9b6020e3323f1e6c6a9255
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
-rw-r--r-- | src/bluetooth/qbluetoothsocket_android.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bluetooth/qbluetoothsocket_android.cpp b/src/bluetooth/qbluetoothsocket_android.cpp index a478819b..d7f17d17 100644 --- a/src/bluetooth/qbluetoothsocket_android.cpp +++ b/src/bluetooth/qbluetoothsocket_android.cpp @@ -196,7 +196,7 @@ static QBluetoothUuid reverseUuid(const QBluetoothUuid &serviceUuid) bool isBaseUuid = false; serviceUuid.toUInt32(&isBaseUuid); if (isBaseUuid) - return QBluetoothUuid(); + return serviceUuid; const quint128 original = serviceUuid.toUInt128(); quint128 reversed; |