mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-24 22:43:35 +00:00
pbap_client: fix parameter name
This commit is contained in:
parent
e166b1e8c6
commit
ac27f3f217
@ -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:
|
||||
|
@ -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
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user