reassign 476796 pyusb thanks On Sun, Feb 15, 2009 at 09:18:00PM +0100, Bernd Zeimetz wrote: > reassign 476796 libusb-0.1-4 > thanks > > Hi, > > this weird erorr message comes from libusb - reassigning it therefore. >
It comes from libusb because pyusb calls usb_strerror() when there is no error. Quoting the libusb Developers Guide: | Chapter 7. Return values | There are two types of return values used in libusb v0.1. The first | is a handle returned by usb_open. The second is an int. In all cases | where an int is returned, >= 0 is a success and < 0 is an error | condition. On the other side pyusb checks for a value != 0, so it thinks some returned values are error while they are not. -- Aurelien Jarno GPG: 1024D/F1BCDB73 [email protected] http://www.aurel32.net -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

