Commit 13782e5
applications, samples: use conn_handle from sys attr missing event
When responding with sd_ble_gatts_sys_attr_set() to a
BLE_GATTS_EVT_SYS_ATTR_MISSING event, use the connection handle
from the BLE GATTS event. This is more correct than using some
conn_handle stored in some global data.
While the conn_handle is stored with the same offset in both the
evt.gap_evt and evt.gatts_evt structures,
the BLE_GATTS_EVT_SYS_ATTR_MISSING event is a GATTS event and so it
is incorrect to read it using evt.gap_evt. Read the conn_handle
correctly using the evt.gatts_evt structure.
Signed-off-by: Andreas Moltumyr <andreas.moltumyr@nordicsemi.no>1 parent 63860e4 commit 13782e5
5 files changed
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | | - | |
| 107 | + | |
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
| 68 | + | |
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
242 | 242 | | |
243 | 243 | | |
244 | 244 | | |
245 | | - | |
| 245 | + | |
246 | 246 | | |
247 | 247 | | |
248 | 248 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
346 | 346 | | |
347 | 347 | | |
348 | 348 | | |
349 | | - | |
| 349 | + | |
350 | 350 | | |
351 | 351 | | |
352 | 352 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
99 | | - | |
| 99 | + | |
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
| |||
0 commit comments