mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-31 01:20:44 +00:00
avrcp_target: enable storing pointer to a long attribute
This commit is contained in:
parent
5fb5df0ce6
commit
ffbb5e08c2
@ -789,7 +789,6 @@ static uint8_t avrcp_target_store_media_attr(avrcp_connection_t * connection, av
|
||||
int index = attr_id - 1;
|
||||
if (!value) return AVRCP_STATUS_INVALID_PARAMETER;
|
||||
uint16_t value_len = (uint16_t)strlen(value);
|
||||
btstack_assert(value_len <= 255);
|
||||
connection->target_now_playing_info[index].value = (uint8_t*)value;
|
||||
connection->target_now_playing_info[index].len = value_len;
|
||||
return ERROR_CODE_SUCCESS;
|
||||
|
Loading…
x
Reference in New Issue
Block a user