search for: ensure_ep_open

Displaying 1 result from an estimated 1 matches for "ensure_ep_open".

2006 May 08
1
RE: Nut-upsuser Digest, Vol 11, Issue 3
...h blocks on read from usb until buffer is full. In my case this was seemingly infinite. A timeout is passed to the function but netBSD does not seem to respect this. I have been meaning to lodge a bug-report but haven't as yet. To fix (hack) I changed bsd.c in libusb as follows: Change Fd = ensure_ep_open(dev, ep, 0, O_RDONLY) To Fd = ensure_ep_open(dev, ep, 0, O_RDONLY | O_NONBLOCK) This just tells the read to return immediately if no data from usb rather than block. OS buffers device anyway. With this plus the information in the faqs I was able to achieve an operational system. Hope this is s...