diff options
Diffstat (limited to 'Demos/Host/Incomplete/BluetoothHost/Lib/BluetoothStack.c')
-rw-r--r-- | Demos/Host/Incomplete/BluetoothHost/Lib/BluetoothStack.c | 3 |
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(); } |