pbap_client: fix parameter name

This commit is contained in:
Milanka Ringwald 2021-09-16 16:42:41 +02:00
parent e166b1e8c6
commit ac27f3f217
3 changed files with 5 additions and 5 deletions

View File

@ -285,7 +285,7 @@ static void packet_handler(uint8_t packet_type, uint16_t channel, uint8_t *packe
if (status){
printf("[!] Get Phonebook size error: 0x%x\n", status);
} else {
printf("[+] Phonebook size: %u\n", pbap_subevent_phonebook_size_get_phoneboook_size(packet));
printf("[+] Phonebook size: %u\n", pbap_subevent_phonebook_size_get_phonebook_size(packet));
}
break;
case PBAP_SUBEVENT_CARD_RESULT:

View File

@ -3034,7 +3034,7 @@ typedef uint8_t sm_key_t[16];
* @param subevent_code
* @param goep_cid
* @param status
* @param phoneboook_size
* @param phonebook_size
*/
#define PBAP_SUBEVENT_PHONEBOOK_SIZE 0x04

View File

@ -9226,12 +9226,12 @@ static inline uint8_t pbap_subevent_phonebook_size_get_status(const uint8_t * ev
return event[5];
}
/**
* @brief Get field phoneboook_size from event PBAP_SUBEVENT_PHONEBOOK_SIZE
* @brief Get field phonebook_size from event PBAP_SUBEVENT_PHONEBOOK_SIZE
* @param event packet
* @return phoneboook_size
* @return phonebook_size
* @note: btstack_type 2
*/
static inline uint16_t pbap_subevent_phonebook_size_get_phoneboook_size(const uint8_t * event){
static inline uint16_t pbap_subevent_phonebook_size_get_phonebook_size(const uint8_t * event){
return little_endian_read_16(event, 6);
}