mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-21 12:40:42 +00:00
libusb: fix build without ENABLE_SCO_OVER_HCI
This commit is contained in:
parent
18343f0b02
commit
be531a89d0
@ -165,12 +165,6 @@ static struct libusb_transfer *acl_out_transfer;
|
|||||||
static struct libusb_transfer *event_in_transfer[EVENT_IN_BUFFER_COUNT];
|
static struct libusb_transfer *event_in_transfer[EVENT_IN_BUFFER_COUNT];
|
||||||
static struct libusb_transfer *acl_in_transfer[ACL_IN_BUFFER_COUNT];
|
static struct libusb_transfer *acl_in_transfer[ACL_IN_BUFFER_COUNT];
|
||||||
|
|
||||||
#ifdef ENABLE_SCO_OVER_HCI
|
|
||||||
|
|
||||||
#ifdef _WIN32
|
|
||||||
#error "SCO not working on Win32 (Windows 8, libusb 1.0.19, Zadic WinUSB), please uncomment ENABLE_SCO_OVER_HCI in btstack-config.h for now"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// known devices
|
// known devices
|
||||||
typedef struct {
|
typedef struct {
|
||||||
btstack_linked_item_t next;
|
btstack_linked_item_t next;
|
||||||
@ -180,6 +174,12 @@ typedef struct {
|
|||||||
|
|
||||||
static btstack_linked_list_t usb_knwon_devices;
|
static btstack_linked_list_t usb_knwon_devices;
|
||||||
|
|
||||||
|
#ifdef ENABLE_SCO_OVER_HCI
|
||||||
|
|
||||||
|
#ifdef _WIN32
|
||||||
|
#error "SCO not working on Win32 (Windows 8, libusb 1.0.19, Zadic WinUSB), please uncomment ENABLE_SCO_OVER_HCI in btstack-config.h for now"
|
||||||
|
#endif
|
||||||
|
|
||||||
// incoming SCO
|
// incoming SCO
|
||||||
static H2_SCO_STATE sco_state;
|
static H2_SCO_STATE sco_state;
|
||||||
static uint8_t sco_buffer[255+3 + SCO_PACKET_SIZE];
|
static uint8_t sco_buffer[255+3 + SCO_PACKET_SIZE];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user