projects
/
pub
/
USBasp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
92bebc4
)
Oops - when adding a sequence header to the SDP response, the size value needs to...
author
Dean Camera
<dean@fourwalledcubicle.com>
Fri, 21 May 2010 08:01:41 +0000
(08:01 +0000)
committer
Dean Camera
<dean@fourwalledcubicle.com>
Fri, 21 May 2010 08:01:41 +0000
(08:01 +0000)
Demos/Host/Incomplete/BluetoothHost/Lib/ServiceDiscoveryProtocol.c
patch
|
blob
|
blame
|
history
Demos/Host/Incomplete/BluetoothHost/Lib/ServiceDiscoveryProtocol.h
patch
|
blob
|
blame
|
history
LUFA/ManPages/SoftwareBootloaderJump.txt
patch
|
blob
|
blame
|
history
diff --git
a/Demos/Host/Incomplete/BluetoothHost/Lib/ServiceDiscoveryProtocol.c
b/Demos/Host/Incomplete/BluetoothHost/Lib/ServiceDiscoveryProtocol.c
index
227f758
..
3f16ad1
100644
(file)
--- a/
Demos/Host/Incomplete/BluetoothHost/Lib/ServiceDiscoveryProtocol.c
+++ b/
Demos/Host/Incomplete/BluetoothHost/Lib/ServiceDiscoveryProtocol.c
@@
-224,6
+224,9
@@
static void ServiceDiscovery_ProcessServiceSearchAttribute(SDP_PDUHeader_t* SDPH
ResponsePacket.SDPHeader.TransactionID = SDPHeader->TransactionID;
ResponsePacket.SDPHeader.ParameterLength = (ResponsePacket.AttributeListByteCount + sizeof(ResponsePacket.AttributeListByteCount));
ResponsePacket.SDPHeader.TransactionID = SDPHeader->TransactionID;
ResponsePacket.SDPHeader.ParameterLength = (ResponsePacket.AttributeListByteCount + sizeof(ResponsePacket.AttributeListByteCount));
+ BT_SDP_DEBUG(1, ">> Service Search Attribute Response");
+ BT_SDP_DEBUG(2, "-- Total Parameter Length: 0x%04X", ResponsePacket.SDPHeader.ParameterLength);
+
Bluetooth_SendPacket(&ResponsePacket, (sizeof(ResponsePacket.SDPHeader) + ResponsePacket.SDPHeader.ParameterLength),
Channel);
}
Bluetooth_SendPacket(&ResponsePacket, (sizeof(ResponsePacket.SDPHeader) + ResponsePacket.SDPHeader.ParameterLength),
Channel);
}
diff --git
a/Demos/Host/Incomplete/BluetoothHost/Lib/ServiceDiscoveryProtocol.h
b/Demos/Host/Incomplete/BluetoothHost/Lib/ServiceDiscoveryProtocol.h
index
58f7d87
..
50d15ad
100644
(file)
--- a/
Demos/Host/Incomplete/BluetoothHost/Lib/ServiceDiscoveryProtocol.h
+++ b/
Demos/Host/Incomplete/BluetoothHost/Lib/ServiceDiscoveryProtocol.h
@@
-120,10
+120,9
@@
*BufferPos += 1;
uint16_t* SizePos = (uint16_t*)*BufferPos;
*BufferPos += 1;
uint16_t* SizePos = (uint16_t*)*BufferPos;
- *SizePos = 0;
-
- **BufferPos += 2;
+ *BufferPos += 2;
+ *SizePos = 0;
return SizePos;
}
return SizePos;
}
diff --git
a/LUFA/ManPages/SoftwareBootloaderJump.txt
b/LUFA/ManPages/SoftwareBootloaderJump.txt
index
1b284e4
..
ca8d8ee
100644
(file)
--- a/
LUFA/ManPages/SoftwareBootloaderJump.txt
+++ b/
LUFA/ManPages/SoftwareBootloaderJump.txt
@@
-44,8
+44,13
@@
*
* void Jump_To_Bootloader(void)
* {
*
* void Jump_To_Bootloader(void)
* {
- * // If USB is used, detatch from the bus
and wait 2 seconds for the host to register it
+ * // If USB is used, detatch from the bus
* USB_ShutDown();
* USB_ShutDown();
+ *
+ * // Disable all interrupts
+ * cli();
+ *
+ * // Wait two seconds for the USB detatchment to register on the host
* for (uint8_t i = 0; i < 128; i++)
* _delay_ms(16);
*
* for (uint8_t i = 0; i < 128; i++)
* _delay_ms(16);
*