mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-07 09:55:45 +00:00
avrcp: use play_status in AVRCP_SUBEVENT_NOTIFICATION_PLAYBACK_STATUS_CHANGED as it is the same as in AVRCP_SUBEVENT_PLAY_STATUS
This commit is contained in:
parent
0f76c2d709
commit
6aecb8a4f3
@ -1514,7 +1514,7 @@ typedef uint8_t sm_key_t[16];
|
||||
* @param subevent_code
|
||||
* @param avrcp_cid
|
||||
* @param command_type
|
||||
* @param playback_status
|
||||
* @param play_status
|
||||
*/
|
||||
#define AVRCP_SUBEVENT_NOTIFICATION_PLAYBACK_STATUS_CHANGED 0x06
|
||||
|
||||
|
@ -4966,12 +4966,12 @@ static inline uint8_t avrcp_subevent_notification_playback_status_changed_get_co
|
||||
return event[5];
|
||||
}
|
||||
/**
|
||||
* @brief Get field playback_status from event AVRCP_SUBEVENT_NOTIFICATION_PLAYBACK_STATUS_CHANGED
|
||||
* @brief Get field play_status from event AVRCP_SUBEVENT_NOTIFICATION_PLAYBACK_STATUS_CHANGED
|
||||
* @param event packet
|
||||
* @return playback_status
|
||||
* @return play_status
|
||||
* @note: btstack_type 1
|
||||
*/
|
||||
static inline uint8_t avrcp_subevent_notification_playback_status_changed_get_playback_status(const uint8_t * event){
|
||||
static inline uint8_t avrcp_subevent_notification_playback_status_changed_get_play_status(const uint8_t * event){
|
||||
return event[6];
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user