mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-04-18 14:42:33 +00:00
avrcp_target: check data of AVRCP_PDU_ID_SET_ABSOLUTE_VOLUME packet
This commit is contained in:
parent
3095a00a4c
commit
fe70eb3215
@ -1351,7 +1351,7 @@ static void avrcp_handle_l2cap_data_packet_for_signaling_connection(avrcp_connec
|
|||||||
|
|
||||||
uint8_t absolute_volume = packet[pos];
|
uint8_t absolute_volume = packet[pos];
|
||||||
if (absolute_volume >= 0x80) {
|
if (absolute_volume >= 0x80) {
|
||||||
avrcp_target_response_vendor_dependent_reject(connection, pdu_id, AVRCP_STATUS_SPECIFIED_PARAMETER_NOT_FOUND);
|
avrcp_target_response_vendor_dependent_reject(connection, pdu_id, AVRCP_STATUS_PARAMETER_CONTENT_ERROR);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
connection->target_absolute_volume = absolute_volume;
|
connection->target_absolute_volume = absolute_volume;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user