pbap_client: emit vCard entry data as PBAP_DATA_PACKET

This commit is contained in:
Matthias Ringwald 2021-12-21 13:23:20 +01:00
parent ebb9bbfb00
commit c79e33a22c
2 changed files with 2 additions and 3 deletions

View File

@ -20,6 +20,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
### Fixed
- PBAP CLient: support disconnect while operation is ongoing
- PBAP Client: use SRM only if GOEP v2.0 or higher connection
- PBAP Client: emit vCard entry data as PBAP_DATA_PACKET
- L2CAP: limit remote MTU by local tx configuration in ERTM
### Changed

View File

@ -538,6 +538,7 @@ static void pbap_client_parser_callback_get_operation(void * user_data, uint8_t
case OBEX_HEADER_END_OF_BODY:
switch(pbap_client->state){
case PBAP_W4_PHONEBOOK:
case PBAP_W4_GET_CARD_ENTRY_COMPLETE:
client->client_handler(PBAP_DATA_PACKET, client->cid, (uint8_t *) data_buffer, data_len);
if (data_offset + data_len == total_len){
client->flow_wait_for_user = true;
@ -546,9 +547,6 @@ static void pbap_client_parser_callback_get_operation(void * user_data, uint8_t
case PBAP_W4_GET_CARD_LIST_COMPLETE:
pbap_client_process_vcard_list_body(data_buffer, data_len);
break;
case PBAP_W4_GET_CARD_ENTRY_COMPLETE:
// TODO: not implemented yet
break;
default:
btstack_unreachable();
break;