mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-22 15:40:16 +00:00
avrcp_target: use correct variable for sending playback status value
This commit is contained in:
parent
4e5badd219
commit
c57adf92cf
@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
||||
- att_db_util: fix realloc of att db buffer for large attributes
|
||||
- btstack_tlv_posix: only keep last value in memory, fix delete operation
|
||||
- l2cap_signaling: use packet boundary flags 0x00 for LE signaling packets (ignoring hci_non_flushable_packet_boundary_flag_supported())
|
||||
- AVRCP Target: fix reporting of PLAYBACK_STATUS_CHANGED
|
||||
|
||||
### Added
|
||||
- att_db_util: provide GATT Database Hash via att_db_util_hash_calc
|
||||
|
@ -1199,7 +1199,8 @@ static void avrcp_target_packet_handler(uint8_t packet_type, uint16_t channel, u
|
||||
|
||||
if (connection->playback_status_changed){
|
||||
connection->playback_status_changed = 0;
|
||||
avrcp_target_send_notification(connection->l2cap_signaling_cid, connection, AVRCP_NOTIFICATION_EVENT_PLAYBACK_STATUS_CHANGED, &connection->playback_status_changed, 1);
|
||||
uint8_t playback_status = (uint8_t) connection->playback_status;
|
||||
avrcp_target_send_notification(connection->l2cap_signaling_cid, connection, AVRCP_NOTIFICATION_EVENT_PLAYBACK_STATUS_CHANGED, &playback_status, 1);
|
||||
avrcp_target_reset_notification(connection, AVRCP_NOTIFICATION_EVENT_PLAYBACK_STATUS_CHANGED);
|
||||
avrcp_request_can_send_now(connection, connection->l2cap_signaling_cid);
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user