fix warning in Debug mode

This commit is contained in:
Gwenhael Goavec-Merou
2021-07-14 17:59:02 +02:00
parent be6ed217dd
commit cd64bce4f2
4 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ FX2_ll::FX2_ll(uint16_t uninit_vid, uint16_t uninit_pid,
}
/* try to open uninitialized device */
if (uninit_vid != -1 && uninit_pid != -1) {
if (uninit_vid != 0 && uninit_pid != 0) {
dev_handle = libusb_open_device_with_vid_pid(usb_ctx,
uninit_vid, uninit_pid);
if (dev_handle) {