drivers/nble: Fix log order when receiving a write event
For example when writing to CCC descriptor it may give the impression that a handle is being written twice when in fact it is just calling a callback. Change-Id: I7aca87a1678789547224ef8d64f1f6c55af8022d Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
This commit is contained in:
parent
eccec2a5ac
commit
e4582107f4
1 changed files with 2 additions and 2 deletions
|
@ -431,13 +431,13 @@ void on_ble_gatts_write_evt(const struct ble_gatt_wr_evt *evt,
|
|||
const struct bt_gatt_attr *attr = evt->attr;
|
||||
struct ble_gatts_rw_reply_params reply_data;
|
||||
|
||||
BT_DBG("handle 0x%04x buf %p len %u", attr->handle, buf, buflen);
|
||||
|
||||
if (attr->write) {
|
||||
reply_data.status = attr->write(NULL, attr, buf, buflen,
|
||||
evt->offset);
|
||||
}
|
||||
|
||||
BT_DBG("handle 0x%04x buf %p len %u", attr->handle, buf, buflen);
|
||||
|
||||
if (evt->reply) {
|
||||
reply_data.conn_handle = evt->conn_handle;
|
||||
reply_data.offset = evt->offset;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue