Export to GitHub

usbprog - issue #1

Support for FreeBSD


Posted on Mar 13, 2013 by Grumpy Kangaroo

Hi,

You need to give a valid buffer even though the re-programming request is stalled, under FreeBSD 8+. See attached patch!

Thank you for your software!

--HPS

devices.cc.diff

--- usbprog/devices.cc.orig 2013-03-12 10:50:23.000000000 +0100 +++ usbprog/devices.cc 2013-03-12 10:50:46.000000000 +0100 @@ -334,9 +334,10 @@ }

 int timeout = 6;

+ char buffer[8];

 Debug::debug()->trace("usb_control_msg (multiple times)");

- while (usb_control_msg(usb_handle, 0xC0, 0x01, 0, 0, NULL, 8, 1000) < 0){ + while (usb_control_msg(usb_handle, 0xC0, 0x01, 0, 0, buffer, 8, 1000) < 0){ if (--timeout == 0) break; usbprog_sleep(1);

Status: New

Labels:
Type-Defect Priority-Medium