From 209f70a0839b18e59e97517c7c9276eefe53430b Mon Sep 17 00:00:00 2001 From: h2zero Date: Thu, 25 Jul 2024 09:31:30 -0600 Subject: [PATCH] Fix 128 bit uuid comparison. --- src/NimBLEUUID.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NimBLEUUID.cpp b/src/NimBLEUUID.cpp index 38c7903..3226dba 100644 --- a/src/NimBLEUUID.cpp +++ b/src/NimBLEUUID.cpp @@ -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== /**