diff --git a/src/usbBlaster.cpp b/src/usbBlaster.cpp index 2adaf06..97eb284 100644 --- a/src/usbBlaster.cpp +++ b/src/usbBlaster.cpp @@ -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));