mirror of
https://github.com/h2zero/esp-nimble-cpp.git
synced 2024-11-21 20:50:55 +01:00
Fix: Descriptor list incomplete when Notify property set.
This commit is contained in:
parent
f0191eb1e6
commit
bbeae9df6b
1 changed files with 3 additions and 2 deletions
|
@ -111,8 +111,9 @@ bool NimBLEService::start() {
|
||||||
if(numDscs) {
|
if(numDscs) {
|
||||||
// skip 2902 as it's automatically created by NimBLE
|
// skip 2902 as it's automatically created by NimBLE
|
||||||
// if Indicate or Notify flags are set
|
// if Indicate or Notify flags are set
|
||||||
if((pCharacteristic->m_properties & BLE_GATT_CHR_F_INDICATE) ||
|
if(((pCharacteristic->m_properties & BLE_GATT_CHR_F_INDICATE) ||
|
||||||
(pCharacteristic->m_properties & BLE_GATT_CHR_F_NOTIFY)) {
|
(pCharacteristic->m_properties & BLE_GATT_CHR_F_NOTIFY)) &&
|
||||||
|
pCharacteristic->getDescriptorByUUID("2902") != nullptr) {
|
||||||
numDscs--;
|
numDscs--;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue