Bluetooth: GATT: Fix comment related to write attribute
The comment was suggesting that write callback was reading and storing buffer when in fact it should write to the attribute value. Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
This commit is contained in:
parent
ae05089946
commit
8f812f30a1
1 changed files with 1 additions and 1 deletions
|
@ -1213,7 +1213,7 @@ static u8_t write_cb(const struct bt_gatt_attr *attr, void *user_data)
|
|||
flags |= BT_GATT_WRITE_FLAG_CMD;
|
||||
}
|
||||
|
||||
/* Read attribute value and store in the buffer */
|
||||
/* Write attribute value */
|
||||
write = attr->write(data->conn, attr, data->value, data->len,
|
||||
data->offset, flags);
|
||||
if (write < 0 || write != data->len) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue