diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2010-06-01 04:22:20 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2010-06-01 04:22:20 +0000 |
commit | cb52e4371e770e79b3648120452fc4df908887a3 (patch) | |
tree | f29bbcb09f6235a6864ea3a1c0ca8d72306ca95f /Demos/Host/Incomplete/BluetoothHost/Lib/SDPServices.c | |
parent | e0ef5741d49dc5b36f3bb8165506b51006e68ee3 (diff) | |
download | lufa-cb52e4371e770e79b3648120452fc4df908887a3.tar.gz lufa-cb52e4371e770e79b3648120452fc4df908887a3.tar.bz2 lufa-cb52e4371e770e79b3648120452fc4df908887a3.zip |
Fix the encoding of UUIDs in the SDP server so that they match the Bluetooth UUID format properly.
Diffstat (limited to 'Demos/Host/Incomplete/BluetoothHost/Lib/SDPServices.c')
-rw-r--r-- | Demos/Host/Incomplete/BluetoothHost/Lib/SDPServices.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Demos/Host/Incomplete/BluetoothHost/Lib/SDPServices.c b/Demos/Host/Incomplete/BluetoothHost/Lib/SDPServices.c index 9df89d51b..537c81f0a 100644 --- a/Demos/Host/Incomplete/BluetoothHost/Lib/SDPServices.c +++ b/Demos/Host/Incomplete/BluetoothHost/Lib/SDPServices.c @@ -40,14 +40,14 @@ const struct {
uint8_t Header;
uint16_t Size;
- ClassUUID_t UUIDList[];
+ ItemUUID_t UUIDList[];
} PROGMEM SDP_Attribute_ServiceClassIDs =
{
.Header = (SDP_DATATYPE_Sequence | SDP_DATASIZE_Variable16Bit),
- .Size = SWAPENDIAN_16(sizeof(ClassUUID_t) * 1),
+ .Size = SWAPENDIAN_16(sizeof(ItemUUID_t) * 1),
.UUIDList =
{
- {.Header = (SDP_DATATYPE_UUID | SDP_DATASIZE_128Bit), .UUID = {BASE_96BIT_UUID, 0x00, 0x10, 0x00, 0x00}}
+ {.Header = (SDP_DATATYPE_UUID | SDP_DATASIZE_128Bit), .UUID = {BASE_80BIT_UUID, {0x00, 0x00, 0x00, 0x00, 0x10, 0x00}},}
}
};
@@ -128,14 +128,14 @@ const struct {
uint8_t Header;
uint16_t Size;
- ClassUUID_t UUIDList[];
+ ItemUUID_t UUIDList[];
} PROGMEM RFCOMM_Attribute_ServiceClassIDs =
{
.Header = (SDP_DATATYPE_Sequence | SDP_DATASIZE_Variable16Bit),
- .Size = SWAPENDIAN_16(sizeof(ClassUUID_t) * 1),
+ .Size = SWAPENDIAN_16(sizeof(ItemUUID_t) * 1),
.UUIDList =
{
- {.Header = (SDP_DATATYPE_UUID | SDP_DATASIZE_128Bit), .UUID = {BASE_96BIT_UUID, 0x01, 0x11, 0x00, 0x00}}
+ {.Header = (SDP_DATATYPE_UUID | SDP_DATASIZE_128Bit), .UUID = {BASE_80BIT_UUID, {0x00, 0x00, 0x00, 0x00, 0x11, 0x01}},}
}
};
|