Added new USB_DeviceState variable to keep track of the current Device mode USB state.
[pub/USBasp.git] / Demos / Host / Incomplete / BluetoothHost / Lib / BluetoothStack.c
index e265910..628fa21 100644 (file)
@@ -41,7 +41,7 @@ Bluetooth_Device_t     Bluetooth_DeviceConfiguration ATTR_WEAK =
 \r
 void Bluetooth_Stack_Task(void)\r
 {\r
-       if (!(USB_IsConnected) || (USB_HostState != HOST_STATE_Ready))\r
+       if (USB_HostState != HOST_STATE_Configured)\r
          Bluetooth_HCIProcessingState = Bluetooth_Init;\r
                \r
        Bluetooth_ProcessHCICommands();\r