mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-13 15:41:17 +00:00
avrcp: remove track_status from AVRCP_NOTIFICATION_EVENT_TRACK_CHANGED
This commit is contained in:
parent
8ef2e44b9b
commit
ee6d17f24f
@ -1519,11 +1519,10 @@ typedef uint8_t sm_key_t[16];
|
||||
#define AVRCP_SUBEVENT_NOTIFICATION_PLAYBACK_STATUS_CHANGED 0x06
|
||||
|
||||
/**
|
||||
* @format 1211
|
||||
* @format 121
|
||||
* @param subevent_code
|
||||
* @param avrcp_cid
|
||||
* @param command_type
|
||||
* @param track_status
|
||||
*/
|
||||
#define AVRCP_SUBEVENT_NOTIFICATION_TRACK_CHANGED 0x07
|
||||
|
||||
|
@ -4993,15 +4993,6 @@ static inline uint16_t avrcp_subevent_notification_track_changed_get_avrcp_cid(c
|
||||
static inline uint8_t avrcp_subevent_notification_track_changed_get_command_type(const uint8_t * event){
|
||||
return event[5];
|
||||
}
|
||||
/**
|
||||
* @brief Get field track_status from event AVRCP_SUBEVENT_NOTIFICATION_TRACK_CHANGED
|
||||
* @param event packet
|
||||
* @return track_status
|
||||
* @note: btstack_type 1
|
||||
*/
|
||||
static inline uint8_t avrcp_subevent_notification_track_changed_get_track_status(const uint8_t * event){
|
||||
return event[6];
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Get field avrcp_cid from event AVRCP_SUBEVENT_NOTIFICATION_NOW_PLAYING_CONTENT_CHANGED
|
||||
|
@ -745,7 +745,7 @@ static void avrcp_handle_l2cap_data_packet_for_signaling_connection(avrcp_connec
|
||||
break;
|
||||
}
|
||||
case AVRCP_NOTIFICATION_EVENT_TRACK_CHANGED:{
|
||||
uint8_t event[7];
|
||||
uint8_t event[6];
|
||||
int offset = 0;
|
||||
event[offset++] = HCI_EVENT_AVRCP_META;
|
||||
event[offset++] = sizeof(event) - 2;
|
||||
@ -753,7 +753,6 @@ static void avrcp_handle_l2cap_data_packet_for_signaling_connection(avrcp_connec
|
||||
little_endian_store_16(event, offset, connection->con_handle);
|
||||
offset += 2;
|
||||
event[offset++] = ctype;
|
||||
event[offset++] = packet[pos];
|
||||
(*avrcp_callback)(HCI_EVENT_PACKET, 0, event, sizeof(event));
|
||||
break;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user