From 698c8daaf480de50adc4d7ad3a94b45f93f8bf55 Mon Sep 17 00:00:00 2001 From: Gwenhael Goavec-Merou Date: Wed, 13 May 2026 16:26:31 +0200 Subject: [PATCH] usbBlaster: added explicit windex when read_ctrl is used --- src/usbBlaster.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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));