From 6aecb8a4f3c9c92851f8fe812623acb580a2b5bd Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Fri, 9 Jun 2017 17:48:39 +0200 Subject: [PATCH] avrcp: use play_status in AVRCP_SUBEVENT_NOTIFICATION_PLAYBACK_STATUS_CHANGED as it is the same as in AVRCP_SUBEVENT_PLAY_STATUS --- src/btstack_defines.h | 2 +- src/btstack_event.h | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/btstack_defines.h b/src/btstack_defines.h index 538e307f2..013b0c63d 100644 --- a/src/btstack_defines.h +++ b/src/btstack_defines.h @@ -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 diff --git a/src/btstack_event.h b/src/btstack_event.h index d40eaf4a5..07e032b4e 100644 --- a/src/btstack_event.h +++ b/src/btstack_event.h @@ -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]; }