diff options
author | Dean Camera <[email protected]> | 2010-04-19 10:53:14 +0000 |
---|---|---|
committer | Dean Camera <[email protected]> | 2010-04-19 10:53:14 +0000 |
commit | d92e9133d392fe9abfde27b60b27b24f3b142fc3 (patch) | |
tree | f35522ea3de40eba6faf610426cd18ec3474ae39 /Demos/Host/Incomplete/BluetoothHost/Lib/BluetoothACLPackets.c | |
parent | fc8e4837a936bb1b4bd19bdd54660878b3efe02c (diff) | |
download | qmk_firmware-d92e9133d392fe9abfde27b60b27b24f3b142fc3.tar.gz qmk_firmware-d92e9133d392fe9abfde27b60b27b24f3b142fc3.zip |
Make bluetooth SDP code correctly unpack the search UUIDs and parameters.
Minor documentation improvements.
Diffstat (limited to 'Demos/Host/Incomplete/BluetoothHost/Lib/BluetoothACLPackets.c')
-rw-r--r-- | Demos/Host/Incomplete/BluetoothHost/Lib/BluetoothACLPackets.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Demos/Host/Incomplete/BluetoothHost/Lib/BluetoothACLPackets.c b/Demos/Host/Incomplete/BluetoothHost/Lib/BluetoothACLPackets.c index 9f1ec36d14..87ef652a9a 100644 --- a/Demos/Host/Incomplete/BluetoothHost/Lib/BluetoothACLPackets.c +++ b/Demos/Host/Incomplete/BluetoothHost/Lib/BluetoothACLPackets.c @@ -493,17 +493,17 @@ static inline void Bluetooth_Signal_ConfigurationReq(const BT_Signal_Header_t* c while (OptionPos < OptionsLen)
{
BT_Config_Option_Header_t* OptionHeader = (BT_Config_Option_Header_t*)&Options[OptionPos];
- void* OptionData = &Options[OptionPos + sizeof(*OptionHeader)];
+ void* OptionData = &Options[OptionPos + sizeof(BT_Config_Option_Header_t)];
BT_ACL_DEBUG(2, "-- Option Type: 0x%04X", OptionHeader->Type);
- BT_ACL_DEBUG(2, "-- Option Length: 0x%04X", (sizeof(*OptionHeader) + OptionHeader->Length));
+ BT_ACL_DEBUG(2, "-- Option Length: 0x%04X", (sizeof(BT_Config_Option_Header_t) + OptionHeader->Length));
/* Store the remote MTU option's value if present */
if (OptionHeader->Type == BT_CONFIG_OPTION_MTU)
ChannelData->RemoteMTU = *((uint16_t*)OptionData);
/* Progress to the next option in the packet */
- OptionPos += (sizeof(*OptionHeader) + OptionHeader->Length);
+ OptionPos += (sizeof(BT_Config_Option_Header_t) + OptionHeader->Length);
}
}
|