mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-25 18:35:17 +00:00
avdtp target: fix parsing vendor dependent cmds
This commit is contained in:
parent
1589b89786
commit
ea686c7dd3
@ -846,9 +846,7 @@ static void avrcp_handle_l2cap_data_packet_for_signaling_connection(avrcp_connec
|
|||||||
pdu_id = pdu[0];
|
pdu_id = pdu[0];
|
||||||
// 1 - reserved
|
// 1 - reserved
|
||||||
// 2-3 param length,
|
// 2-3 param length,
|
||||||
printf_hexdump(packet, size);
|
uint16_t length = big_endian_read_16(pdu, 2);
|
||||||
|
|
||||||
uint16_t length = big_endian_read_16(pdu, 1);
|
|
||||||
memcpy(connection->cmd_operands, company_id, 3);
|
memcpy(connection->cmd_operands, company_id, 3);
|
||||||
connection->cmd_operands_length = 3;
|
connection->cmd_operands_length = 3;
|
||||||
switch (pdu_id){
|
switch (pdu_id){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user