Message ID | 20200122151924.32697-1-roland.ruckerbauer@robart.cc |
---|---|
State | New |
Headers | show |
Series | Fixed bug in prep_write_cb(): missing arguments | expand |
diff --git a/src/shared/gatt-server.c b/src/shared/gatt-server.c index 0d9bb07..a235552 100644 --- a/src/shared/gatt-server.c +++ b/src/shared/gatt-server.c @@ -1312,7 +1312,7 @@ static void prep_write_cb(uint8_t opcode, const void *pdu, pwcd->length = length; pwcd->server = server; - status = gatt_db_attribute_write(attr, offset, NULL, 0, + status = gatt_db_attribute_write(attr, offset, pdu + 4, length - 4, BT_ATT_OP_PREP_WRITE_REQ, server->att, prep_write_complete_cb, pwcd);