Changed to use the first cccd descriptor found.

This commit is contained in:
ogatatsu committed 2020-01-12 20:05:22 +09:00
1 parent 4fd1d0c0ea
commit e83bf4047a
1 file changed
+2
@@ -155,6 +155,8 @@ bool BLEClientCharacteristic::_discoverDescriptor(uint16_t conn_handle, ble_gatt
{
LOG_LV2("DISC", "Found CCDD: handle = %d", disc_rsp.descs[i].handle);
_cccd_handle = disc_rsp.descs[i].handle;
break;
}
}