Revert commit eb66125

Apparently the reasoning behing commit eb66125 was flawed for certain MSVC
builds, see https://github.com/avrdudes/avrdude/issues/2175
This commit is contained in:
stefanrueger
2026-08-12 20:25:47 +02:00
parent 23f4caed60
commit 98e973eb17

View File

@@ -145,6 +145,11 @@ static int usbdev_open(const char *port, union pinfo pinfo, union filedescriptor
goto trynext;
}
if(usb_set_configuration(udev, dev->config[0].bConfigurationValue)) {
pmsg_notice("(config value %d) %s\n", dev->config[0].bConfigurationValue, usb_strerror());
// goto trynext; // Let's hope it has already been configured
}
int usehid = !!(pinfo.usbinfo.flags & PINFO_FL_USEHID);
for(iface = 0; iface < dev->config[0].bNumInterfaces; iface++) {
cx->usb_interface = dev->config[0].interface[iface].altsetting[0].bInterfaceNumber;