usbBlaster: added explicit windex when read_ctrl is used

This commit is contained in:
Gwenhael Goavec-Merou 2026-05-13 16:26:31 +02:00
parent ef92800ac3
commit 698c8daaf4
1 changed files with 1 additions and 1 deletions

View File

@ -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));