X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fstlink-usb.c;h=e30a98060138f85a8f7d901e0161387725fae8cd;hb=c327578c7da744ed3b39643d0436e68b09045a99;hp=50a7d58eced5c409be02708f59cd318848c71254;hpb=05c3c496a6ee640d4c43a01e8965d3878a62b717;p=fw%2Fstlink diff --git a/src/stlink-usb.c b/src/stlink-usb.c index 50a7d58..e30a980 100644 --- a/src/stlink-usb.c +++ b/src/stlink-usb.c @@ -136,10 +136,10 @@ static int is_stlink_device(libusb_device * dev) { printf("device: 0x%04x, 0x%04x\n", desc.idVendor, desc.idProduct); - if (desc.idVendor != 0x0483) + if (desc.idVendor != USB_ST_VID) return 0; - if (desc.idProduct != 0x3748) + if (desc.idProduct != USB_STLINK_32L_PID) return 0; return 1;