usbBlaster: added explicit windex when read_ctrl is used
This commit is contained in:
parent
ef92800ac3
commit
698c8daaf4
|
|
@ -459,7 +459,7 @@ UsbBlasterII::UsbBlasterII(const std::string &firmware_path)
|
||||||
else
|
else
|
||||||
fpath = firmware_path;
|
fpath = firmware_path;
|
||||||
fx2 = new FX2_ll(0x09fb, 0x6810, 0x09fb, 0x6010, fpath);
|
fx2 = new FX2_ll(0x09fb, 0x6810, 0x09fb, 0x6010, fpath);
|
||||||
if (!fx2->read_ctrl(0x94, 0, buf, 5)) {
|
if (!fx2->read_ctrl(0x94, 0, buf, 5, 0x0000)) {
|
||||||
throw std::runtime_error("Unable to read firmware version.");
|
throw std::runtime_error("Unable to read firmware version.");
|
||||||
}
|
}
|
||||||
printInfo("USB-Blaster II firmware version: " + std::string((char *)buf));
|
printInfo("USB-Blaster II firmware version: " + std::string((char *)buf));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue