diff options
author | Sven Gothel <[email protected]> | 2020-07-03 15:27:31 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2020-07-03 15:27:31 +0200 |
commit | 22e3abf3661d7de42b3e6c738d8167718e3ca218 (patch) | |
tree | 13983ff10e2d8c7c4c0e60d186c7a74bf132b82b /java | |
parent | 58722cabae622579e17c860618e7f34576d2d521 (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 'java')
-rw-r--r-- | java/direct_bt/tinyb/DBTDevice.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/java/direct_bt/tinyb/DBTDevice.java b/java/direct_bt/tinyb/DBTDevice.java index c021ade5..74547cef 100644 --- a/java/direct_bt/tinyb/DBTDevice.java +++ b/java/direct_bt/tinyb/DBTDevice.java @@ -261,7 +261,7 @@ public class DBTDevice extends DBTObject implements BluetoothDevice return false; } final DBTDevice other = (DBTDevice)obj; - return address.equals(other.address); + return address.equals(other.address) && addressType.equals(other.addressType); } @Override |