mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-26 12:35:25 +00:00
util.h: remove print_bd_addr
This commit is contained in:
parent
b1c4ef5fa8
commit
aa4d01c707
@ -133,6 +133,7 @@ static char * flags[] = {
|
||||
/* LISTING_START(GAPLEAdvDataParsing): Parsing advertising data */
|
||||
static void dump_advertisement_data(uint8_t * adv_data, uint8_t adv_size){
|
||||
ad_context_t context;
|
||||
bd_addr_t address;
|
||||
for (ad_iterator_init(&context, adv_size, adv_data) ; ad_iterator_has_more(&context) ; ad_iterator_next(&context)){
|
||||
uint8_t data_type = ad_iterator_get_data_type(&context);
|
||||
uint8_t size = ad_iterator_get_data_len(&context);
|
||||
@ -189,7 +190,8 @@ static void dump_advertisement_data(uint8_t * adv_data, uint8_t adv_size){
|
||||
break;
|
||||
case 0x17: // Public Target Address
|
||||
case 0x18: // Random Target Address
|
||||
print_bd_addr(data);
|
||||
bt_flip_addr(address, data);
|
||||
printf("%s", bd_addr_to_str(address));
|
||||
break;
|
||||
case 0x19: // Appearance
|
||||
// https://developer.bluetooth.org/gatt/characteristics/Pages/CharacteristicViewer.aspx?u=org.bluetooth.characteristic.gap.appearance.xml
|
||||
|
@ -225,10 +225,6 @@ char * bd_addr_to_str(bd_addr_t addr){
|
||||
return (char *) bd_addr_to_str_buffer;
|
||||
}
|
||||
|
||||
void print_bd_addr( bd_addr_t addr){
|
||||
log_info("%s", bd_addr_to_str(addr));
|
||||
}
|
||||
|
||||
int sscan_bd_addr(uint8_t * addr_string, bd_addr_t addr){
|
||||
unsigned int bd_addr_buffer[BD_ADDR_LEN]; //for sscanf, integer needed
|
||||
// reset result buffer
|
||||
|
@ -118,10 +118,6 @@ char char_for_nibble(int nibble);
|
||||
*/
|
||||
#define BD_ADDR_COPY(dest,src) memcpy(dest,src,BD_ADDR_LEN)
|
||||
|
||||
|
||||
// @deprecated please use more convenient bd_addr_to_str
|
||||
void print_bd_addr( bd_addr_t addr);
|
||||
|
||||
/**
|
||||
* @brief Use printf to write hexdump as single line of data
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user