This is an automated email from the ASF dual-hosted git repository.

naraj pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git

commit c07adb5c5a478b3bc143f75aec0ccd2826d6ca43
Author: MichaƂ Narajowski <michal.narajow...@codecoup.pl>
AuthorDate: Mon May 27 13:53:52 2019 +0200

    apps/bttester: Fix find attribute by handle
    
    There was a typo that caused wrong interpretation of returned
    pointer to a structure with a descriptor definition.
---
 apps/bttester/src/gatt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/apps/bttester/src/gatt.c b/apps/bttester/src/gatt.c
index cba662d..c6f7fd4 100644
--- a/apps/bttester/src/gatt.c
+++ b/apps/bttester/src/gatt.c
@@ -511,7 +511,7 @@ static void find_attr_by_handle_cb(const struct 
ble_gatt_svc_def *svc,
 
                for (dsc = chr->descriptors; dsc && dsc->uuid; ++dsc) {
                        if (handle == foreach->handle) {
-                               foreach->attr_type = BLE_GATT_ATTR_CHR;
+                               foreach->attr_type = BLE_GATT_ATTR_DSC;
                                foreach->ptr = (void *) dsc;
                                return;
                        }

Reply via email to