fx2lafw: Devices now retain the same PID/VID after fw load
This commit is contained in:
parent
e318664793
commit
74fcfb806d
|
@ -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) {
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue