diff options
-rw-r--r-- | api/direct_bt/DBTDevice.hpp | 2 | ||||
-rw-r--r-- | java/direct_bt/tinyb/DBTDevice.java | 2 |
2 files changed, 2 insertions, 2 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); } 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 |