forked from h2zero/esp-nimble-cpp
Fix 128 bit uuid comparison.
This commit is contained in:
1 parent
10d589162b
commit
209f70a083
1 file changed
+1
-1
+1
-1
@@ -291,7 +291,7 @@ bool NimBLEUUID::operator==(const NimBLEUUID& rhs) const {
|
||||
return this->getValue() == rhs.getValue();
|
||||
}
|
||||
|
||||
return memcmp(this->getValue(), rhs.getValue(), 16);
|
||||
return memcmp(this->getValue(), rhs.getValue(), 16) == 0;
|
||||
} // operator==
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user