You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ja...@apache.org on 2019/03/29 12:59:34 UTC

[mynewt-nimble] branch 1_1_0_dev updated: apps/btshell: Fix callback in gatt_svr

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

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


The following commit(s) were added to refs/heads/1_1_0_dev by this push:
     new 5d5e44a  apps/btshell: Fix callback in gatt_svr
5d5e44a is described below

commit 5d5e44a063b10254833302263a250e0343d50543
Author: MichaƂ Narajowski <mi...@codecoup.pl>
AuthorDate: Fri Mar 29 11:43:15 2019 +0100

    apps/btshell: Fix callback in gatt_svr
    
    Previous callback was reserved to security test characteristic.
    When called from a wrong characteristic it would result in an assert.
---
 apps/btshell/src/gatt_svr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/apps/btshell/src/gatt_svr.c b/apps/btshell/src/gatt_svr.c
index 27eef7c..2f99fc5 100644
--- a/apps/btshell/src/gatt_svr.c
+++ b/apps/btshell/src/gatt_svr.c
@@ -291,7 +291,7 @@ static const struct ble_gatt_svc_def gatt_svr_inc_svcs[] = {
         .includes = inc_svcs,
         .characteristics = (struct ble_gatt_chr_def[]) {{
             .uuid = PTS_UUID_DECLARE(PTS_CHR_READ_WRITE_ALT),
-            .access_cb = gatt_svr_chr_access_sec_test,
+            .access_cb = gatt_svr_access_test,
             .flags = BLE_GATT_CHR_F_READ | BLE_GATT_CHR_F_WRITE,
         }, {
             0, /* No more characteristics */