mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-03 20:54:18 +00:00
Merge branch 'master' of https://github.com/bluekitchen/btstack
This commit is contained in:
commit
d980f0f442
@ -208,7 +208,7 @@ void att_dump_attributes(void){
|
||||
log_info("Handle: 0x%04x, flags: 0x%04x, uuid: ", it.handle, it.flags);
|
||||
if (it.flags & ATT_PROPERTY_UUID128){
|
||||
swap128(it.uuid, uuid128);
|
||||
printUUID128(uuid128);
|
||||
log_info(uuid128_to_str(uuid128));
|
||||
} else {
|
||||
log_info("%04x", READ_BT_16(it.uuid, 0));
|
||||
}
|
||||
|
@ -176,7 +176,7 @@ void log_key(const char * name, sm_key_t key){
|
||||
hexdump(key, 16);
|
||||
}
|
||||
|
||||
static char uuid128_to_str_buffer[16+4+1];
|
||||
static char uuid128_to_str_buffer[32+4+1];
|
||||
char * uuid128_to_str(uint8_t * uuid){
|
||||
sprintf(uuid128_to_str_buffer, "%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x",
|
||||
uuid[0], uuid[1], uuid[2], uuid[3], uuid[4], uuid[5], uuid[6], uuid[7],
|
||||
|
Loading…
x
Reference in New Issue
Block a user