aboutsummaryrefslogtreecommitdiff
path: root/Demos/Host/Incomplete/BluetoothHost/Lib/BluetoothStack.c
diff options
context:
space:
mode:
authorDean Camera <[email protected]>2010-05-17 23:36:05 +0000
committerDean Camera <[email protected]>2010-05-17 23:36:05 +0000
commitf13bc35a199f3840aaaabecf5f8616f20da7c262 (patch)
tree1aaca6a02181db48539101ca56773e52199c9a77 /Demos/Host/Incomplete/BluetoothHost/Lib/BluetoothStack.c
parentff61dfa50589bc65bf5642feb80a0f23a237d76b (diff)
downloadqmk_firmware-f13bc35a199f3840aaaabecf5f8616f20da7c262.tar.gz
qmk_firmware-f13bc35a199f3840aaaabecf5f8616f20da7c262.zip
Begin processing code for Service Discovery Protocol attributes.
Diffstat (limited to 'Demos/Host/Incomplete/BluetoothHost/Lib/BluetoothStack.c')
-rw-r--r--Demos/Host/Incomplete/BluetoothHost/Lib/BluetoothStack.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Demos/Host/Incomplete/BluetoothHost/Lib/BluetoothStack.c b/Demos/Host/Incomplete/BluetoothHost/Lib/BluetoothStack.c
index 542a783c99..d78a9efa19 100644
--- a/Demos/Host/Incomplete/BluetoothHost/Lib/BluetoothStack.c
+++ b/Demos/Host/Incomplete/BluetoothHost/Lib/BluetoothStack.c
@@ -59,6 +59,9 @@ void Bluetooth_Stack_Init(void)
*/
void Bluetooth_Stack_USBTask(void)
{
+ if (USB_HostState != HOST_STATE_Configured)
+ return;
+
Bluetooth_HCITask();
Bluetooth_ACLTask();
}