diff --git a/platform/windows/hci_transport_h2_winusb.c b/platform/windows/hci_transport_h2_winusb.c index 913bd9021..108ff9c61 100644 --- a/platform/windows/hci_transport_h2_winusb.c +++ b/platform/windows/hci_transport_h2_winusb.c @@ -723,19 +723,20 @@ static BOOL usb_scan_for_bluetooth_endpoints(void) { sco_out_addr = 0; sco_in_addr = 0; - // look for SCO pipes on Interface #1, Alt Setting ALT_SETTING - result = WinUsb_QueryInterfaceSettings(usb_interface_1_handle, ALT_SETTING, &usb_interface_descriptor); + // look for SCO pipes on Interface #1, Alt Setting 1 + int alt_setting = 1; + result = WinUsb_QueryInterfaceSettings(usb_interface_1_handle, alt_setting, &usb_interface_descriptor); if (!result) goto exit_on_error; for (i=0;i