Massive cleanups to the incomplete BluetoothHost demo, to make the HCL layer code...
[pub/USBasp.git] / Demos / Host / Incomplete / BluetoothHost / Lib / BluetoothStack.c
index b5b8bac..7f49fc9 100644 (file)
@@ -39,11 +39,13 @@ Bluetooth_Device_t     Bluetooth_DeviceConfiguration ATTR_WEAK =
                Name:    "LUFA BT Device"\r
        };\r
 \r
+void Bluetooth_State_Init(void)\r
+{\r
+       Bluetooth_HCIProcessingState = Bluetooth_Init;\r
+}\r
+\r
 void Bluetooth_Stack_Task(void)\r
 {\r
-       if (USB_HostState != HOST_STATE_Configured)\r
-         Bluetooth_HCIProcessingState = Bluetooth_Init;\r
-               \r
        Bluetooth_ProcessHCICommands();\r
        Bluetooth_ProcessACLPackets();\r
 }\r