From b5d960bacc2c92770a42b4b4565f0e82c797bbc5 Mon Sep 17 00:00:00 2001 From: Neil Kolban Date: Tue, 3 Apr 2018 19:34:25 -0500 Subject: Commit for 0.4.10 --- src/BLEDescriptor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/BLEDescriptor.cpp') 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); -- cgit v1.2.3