]> sigrok.org Git - libsigrok.git/blobdiff - hardware/fx2lafw/fx2lafw.c
fx2lafw: Devices now retain the same PID/VID after fw load
[libsigrok.git] / hardware / fx2lafw / fx2lafw.c
index 9cc97f21d1dcdaf30ab579018c2837159cbd77f2..2bf1bda6b229be9070bdc7696e944dba1321b59a 100644 (file)
@@ -165,8 +165,8 @@ static int fx2lafw_open_dev(int dev_index)
                        continue;
                }
 
-               if (des.idVendor != FIRMWARE_VID
-                   || des.idProduct != FIRMWARE_PID)
+               if (des.idVendor != ctx->profile->vid
+                   || des.idProduct != ctx->profile->pid)
                        continue;
 
                if (sdi->status == SR_ST_INITIALIZING) {