Renamed all library events to properly seperate out Device and Host mode events....
[pub/USBasp.git] / Demos / Host / Incomplete / BluetoothHost / Lib / BluetoothHCICommands.c
index 54291bf..3b8bcde 100644 (file)
@@ -398,7 +398,7 @@ void Bluetooth_ProcessHCICommands(void)
                        {\r
                                while (!(Bluetooth_GetNextHCIEventHeader()))\r
                                {                               \r
-                                       if (USB_DeviceState == DEVICE_STATE_Unattached)\r
+                                       if (USB_HostState == HOST_STATE_Unattached)\r
                                          return;\r
                                }\r
 \r