mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-06 21:40:04 +00:00
pbap_client: fix property_selector for X-BT-UID and X-BT-UCI
This commit is contained in:
parent
fbd9085d67
commit
827db6fe01
@ -428,6 +428,7 @@ static void pbap_handle_can_send_now(void){
|
||||
// TODO: support format
|
||||
i = 0;
|
||||
uint32_t property_selector_lower = 0;
|
||||
uint32_t property_selector_higher = 0;
|
||||
if (strncmp(pbap_client->vcard_name, "X-BT-UID:", 9) == 0) {
|
||||
property_selector_lower = 1U << 31;
|
||||
}
|
||||
@ -437,8 +438,6 @@ static void pbap_handle_can_send_now(void){
|
||||
if (property_selector_lower != 0){
|
||||
application_parameters[i++] = PBAP_APPLICATION_PARAMETER_PROPERTY_SELECTOR;
|
||||
application_parameters[i++] = 8;
|
||||
uint32_t property_selector_higher = 0;
|
||||
uint32_t property_selector_lower = 1U << 31;
|
||||
big_endian_store_32(application_parameters, i, property_selector_higher);
|
||||
i += 4;
|
||||
big_endian_store_32(application_parameters, i, property_selector_lower);
|
||||
|
Loading…
x
Reference in New Issue
Block a user