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:
Luiz Augusto von Dentz 2018-11-14 11:32:09 +02:00 committed by Johan Hedberg
commit 8f812f30a1

View file

@ -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) {