avrcp_controller: reset data offset

This commit is contained in:
Milanka Ringwald 2024-10-28 10:29:55 +01:00 committed by Matthias Ringwald
parent 1f2f3fd126
commit 5c72796b16

View File

@ -591,6 +591,7 @@ static void avrcp_send_cmd_with_avctp_fragmentation(avrcp_connection_t * connect
switch (connection->avctp_packet_type){
case AVCTP_SINGLE_PACKET:
case AVCTP_START_PACKET:
connection->data_offset = 0;
// Profile IDentifier (PID)
packet[pos++] = BLUETOOTH_SERVICE_CLASS_AV_REMOTE_CONTROL >> 8;
packet[pos++] = BLUETOOTH_SERVICE_CLASS_AV_REMOTE_CONTROL & 0x00FF;