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:
Matthias Ringwald 2017-06-09 17:48:39 +02:00
parent 0f76c2d709
commit 6aecb8a4f3
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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];
}