From c5038f1bf44aea75f1ae1ed035cb7d523ccfdacb Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Wed, 5 Aug 2009 06:36:31 +0000 Subject: Renamed all library events to properly seperate out Device and Host mode events. Changed the firing conditions for some events to ensure that events are fired by their own USB mode only. Remove VBUS events - not needed as the library takes care of VBUS detection and feedback on supported AVRs via the USB_Device_Connected and USB_Device_Disconnected events. Fixed incorrect Host state assignment in the incomplete BluetoothHost demo. --- Demos/Host/Incomplete/BluetoothHost/Lib/BluetoothHCICommands.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Demos/Host/Incomplete/BluetoothHost/Lib/BluetoothHCICommands.c') diff --git a/Demos/Host/Incomplete/BluetoothHost/Lib/BluetoothHCICommands.c b/Demos/Host/Incomplete/BluetoothHost/Lib/BluetoothHCICommands.c index 54291bf75..3b8bcde89 100644 --- a/Demos/Host/Incomplete/BluetoothHost/Lib/BluetoothHCICommands.c +++ b/Demos/Host/Incomplete/BluetoothHost/Lib/BluetoothHCICommands.c @@ -398,7 +398,7 @@ void Bluetooth_ProcessHCICommands(void) { while (!(Bluetooth_GetNextHCIEventHeader())) { - if (USB_DeviceState == DEVICE_STATE_Unattached) + if (USB_HostState == HOST_STATE_Unattached) return; } -- cgit v1.2.3