summaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2020-07-03 15:27:31 +0200
committerSven Gothel <[email protected]>2020-07-03 15:27:31 +0200
commit22e3abf3661d7de42b3e6c738d8167718e3ca218 (patch)
tree13983ff10e2d8c7c4c0e60d186c7a74bf132b82b /api
parent58722cabae622579e17c860618e7f34576d2d521 (diff)
DBTDevice (C++/Java) equality/identity requires its EUI48 address _and_ BDAddressTypev2.1.11
The BDAddressType is the magic 49th bit of the EUI48 address, as it specifies the semantics of its 2-high bits.
Diffstat (limited to 'api')
-rw-r--r--api/direct_bt/DBTDevice.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/direct_bt/DBTDevice.hpp b/api/direct_bt/DBTDevice.hpp
index 5dd8e9db..eda7a482 100644
--- a/api/direct_bt/DBTDevice.hpp
+++ b/api/direct_bt/DBTDevice.hpp
@@ -385,7 +385,7 @@ namespace direct_bt {
{ return lhs.address < rhs.address; }
inline bool operator==(const DBTDevice& lhs, const DBTDevice& rhs)
- { return lhs.address == rhs.address; }
+ { return lhs.address == rhs.address && lhs.addressType == rhs.addressType; }
inline bool operator!=(const DBTDevice& lhs, const DBTDevice& rhs)
{ return !(lhs == rhs); }