diff --git a/CHANGELOG.md b/CHANGELOG.md index 209df673a..42bc81d79 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -25,6 +25,7 @@ GAP: add gap_set_page_scan_activity and gap_set_page_scan_type ### Fixed HCI: handle start inquiry failure +AVRCP Target: fix notification changed event ### Changed HCI: config I2S for BCM Controllers if `ENABLE_SCO_OVER_PCM`, reduce bit clock to 256/512 kHz diff --git a/src/classic/avrcp_target.c b/src/classic/avrcp_target.c index 423d4302b..26b84dfbb 100644 --- a/src/classic/avrcp_target.c +++ b/src/classic/avrcp_target.c @@ -1053,7 +1053,7 @@ static int avrcp_target_send_notification(uint16_t cid, avrcp_connection_t * con packet[pos++] = AVRCP_PDU_ID_REGISTER_NOTIFICATION; packet[pos++] = 0; - big_endian_store_16(packet, pos, value_len); + big_endian_store_16(packet, pos, 1 + value_len); pos += 2; packet[pos++] = notification_id; if (value_len > 0){