mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-15 03:40:42 +00:00
use Vendor/Product ID as specified by config.h
This commit is contained in:
parent
aac0272b3e
commit
95e4feb291
@ -109,8 +109,8 @@ static libusb_device * find_bt(libusb_device **devs) {
|
||||
// The class code (bDeviceClass) is 0xE0 – Wireless Controller.
|
||||
// The SubClass code (bDeviceSubClass) is 0x01 – RF Controller.
|
||||
// The Protocol code (bDeviceProtocol) is 0x01 – Bluetooth programming.
|
||||
if (desc.bDeviceClass == 0xe0 && desc.bDeviceSubClass == 0x01 && desc.bDeviceProtocol == 0x01){
|
||||
// if (desc.idVendor == 0x0a12 && desc.idProduct == 0x0001){
|
||||
// if (desc.bDeviceClass == 0xe0 && desc.bDeviceSubClass == 0x01 && desc.bDeviceProtocol == 0x01){
|
||||
if (desc.idVendor == USB_VENDOR_ID && desc.idProduct == USB_PRODUCT_ID){
|
||||
printf("BT Dongle found.\n");
|
||||
return dev;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user