X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/ff61dfa50589bc65bf5642feb80a0f23a237d76b..f13bc35a199f3840aaaabecf5f8616f20da7c262:/Demos/Host/Incomplete/BluetoothHost/Lib/BluetoothStack.c diff --git a/Demos/Host/Incomplete/BluetoothHost/Lib/BluetoothStack.c b/Demos/Host/Incomplete/BluetoothHost/Lib/BluetoothStack.c index 542a783c9..d78a9efa1 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(); }