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:49:27 +02:00
parent 6aecb8a4f3
commit 8ef2e44b9b

View File

@ -129,7 +129,7 @@ static void packet_handler(uint8_t packet_type, uint16_t channel, uint8_t *packe
printf("AVRCP: command status: %s, ", avrcp_ctype2str(status));
switch (packet[2]){
case AVRCP_SUBEVENT_NOTIFICATION_PLAYBACK_STATUS_CHANGED:
printf("notification, playback status changed %s\n", avrcp_play_status2str(avrcp_subevent_notification_playback_status_changed_get_playback_status(packet)));
printf("notification, playback status changed %s\n", avrcp_play_status2str(avrcp_subevent_notification_playback_status_changed_get_play_status(packet)));
return;
case AVRCP_SUBEVENT_NOTIFICATION_NOW_PLAYING_CONTENT_CHANGED:
printf("notification, playing content changed\n");