X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/071e02c6b6b4837fa9cf0b6d4c749994e02638d7..f64e3db07ac167bf0b64bf429a53721f1848e91d:/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(); }