fx2lafw: Devices now retain the same PID/VID after fw load

This commit is contained in:
Joel Holdsworth 2012-03-01 19:45:08 +00:00
parent e318664793
commit 74fcfb806d
2 changed files with 2 additions and 5 deletions

View 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) {

View File

@ -25,9 +25,6 @@
#define TRIGGER_TYPES "01rf"
#define FIRMWARE FIRMWARE_DIR "/fx2lafw-cwav-usbeeax.fw"
#define FIRMWARE_VID 0x0925
#define FIRMWARE_PID 0x3881
#define MAX_RENUM_DELAY 3000 /* ms */
#define NUM_SIMUL_TRANSFERS 10
#define MAX_EMPTY_TRANSFERS (NUM_SIMUL_TRANSFERS * 2)