mirror of
https://github.com/trabucayre/openFPGALoader.git
synced 2026-08-30 01:48:50 +02:00
usbBlaster: added explicit windex when read_ctrl is used
This commit is contained in:
+1
-1
@@ -459,7 +459,7 @@ UsbBlasterII::UsbBlasterII(const std::string &firmware_path)
|
||||
else
|
||||
fpath = firmware_path;
|
||||
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.");
|
||||
}
|
||||
printInfo("USB-Blaster II firmware version: " + std::string((char *)buf));
|
||||
|
||||
Reference in New Issue
Block a user