summaryrefslogtreecommitdiff
path: root/src/BLEDescriptor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/BLEDescriptor.cpp')
-rw-r--r--src/BLEDescriptor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/BLEDescriptor.cpp b/src/BLEDescriptor.cpp
index 1a72ef3..58ff78b 100644
--- a/src/BLEDescriptor.cpp
+++ b/src/BLEDescriptor.cpp
@@ -155,7 +155,7 @@ void BLEDescriptor::handleGATTServerEvent(
(uint32_t)m_pCharacteristic->getService()->getLastCreatedCharacteristic());
*/
if (m_pCharacteristic != nullptr &&
- m_bleUUID.equals(BLEUUID(param->add_char_descr.char_uuid)) &&
+ m_bleUUID.equals(BLEUUID(param->add_char_descr.descr_uuid)) &&
m_pCharacteristic->getService()->getHandle() == param->add_char_descr.service_handle &&
m_pCharacteristic == m_pCharacteristic->getService()->getLastCreatedCharacteristic()) {
setHandle(param->add_char_descr.attr_handle);