pbap_client: fix property_selector for X-BT-UID and X-BT-UCI

This commit is contained in:
Matthias Ringwald 2021-05-13 16:50:20 +02:00
parent fbd9085d67
commit 827db6fe01

View File

@ -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);