summaryrefslogtreecommitdiff
path: root/devices/ble_hci/common-hal/_bleio/Characteristic.c
diff options
context:
space:
mode:
authorDan Halbert <halbert@halwitz.org>2020-08-04 18:24:37 -0400
committerDan Halbert <halbert@halwitz.org>2020-08-04 18:24:37 -0400
commitac95106b8867072cb40043a1a4298aa0317f101c (patch)
tree15ea3ddb1cf72c53e902f8afdb7ae6f87bb5460a /devices/ble_hci/common-hal/_bleio/Characteristic.c
parenta995a5c58fa4c231fcfb8c5e0eb6a3847faabbcc (diff)
service discovery works; need to work on char and descriptor discovery
Diffstat (limited to 'devices/ble_hci/common-hal/_bleio/Characteristic.c')
-rw-r--r--devices/ble_hci/common-hal/_bleio/Characteristic.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/devices/ble_hci/common-hal/_bleio/Characteristic.c b/devices/ble_hci/common-hal/_bleio/Characteristic.c
index e2cdac08c..2f4a81f9a 100644
--- a/devices/ble_hci/common-hal/_bleio/Characteristic.c
+++ b/devices/ble_hci/common-hal/_bleio/Characteristic.c
@@ -149,6 +149,8 @@ void common_hal_bleio_characteristic_add_descriptor(bleio_characteristic_obj_t *
}
descriptor->handle = bleio_adapter_add_attribute(&common_hal_bleio_adapter_obj, MP_OBJ_TO_PTR(descriptor));
+ // Include this desriptor in the service handles range.
+ self->service->end_handle = descriptor->handle;
// Link together all the descriptors for this characteristic.
descriptor->next = self->descriptor_list;