You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by na...@apache.org on 2019/03/29 12:12:04 UTC
[mynewt-nimble] branch master updated: apps/btshell: Fix callback
in gatt_svr
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
The following commit(s) were added to refs/heads/master by this push:
new bc65ae3 apps/btshell: Fix callback in gatt_svr
bc65ae3 is described below
commit bc65ae383dc92a8fcae4f8a00e65949f988139cf
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 */