mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-10-03 05:37:23 +00:00
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.
This commit is contained in:
committed by
Szymon Janc
parent
2f7a8d5a5b
commit
5d5e44a063
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user