mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-23 09:41:03 +00:00
device_id: fix BLUETOOTH_ATTRIBUTE_PRIMARY_RECORD type to BOOL
This commit is contained in:
parent
9679ea8161
commit
c1b01f87ff
@ -96,9 +96,9 @@ void device_id_create_sdp_record(uint8_t *service, uint32_t service_record_handl
|
||||
|
||||
// 0x0204 "PrimaryRecord"
|
||||
de_add_number(service, DE_UINT, DE_SIZE_16, BLUETOOTH_ATTRIBUTE_PRIMARY_RECORD);
|
||||
de_add_number(service, DE_UINT, DE_SIZE_16, 1); // yes, this is the primary record - there are no others
|
||||
de_add_number(service, DE_BOOL, DE_SIZE_8, 1); // yes, this is the primary record - there are no others
|
||||
|
||||
// 0x0205 "VendorIDSource"
|
||||
de_add_number(service, DE_UINT, DE_SIZE_16, BLUETOOTH_ATTRIBUTE_VENDOR_ID_SOURCE);
|
||||
de_add_number(service, DE_UINT, DE_SIZE_16, vendor_id_source);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user