vpelletier / python-libusb1

Python ctype-based wrapper around libusb1
GNU Lesser General Public License v2.1
174 stars 67 forks source link

Correct scaling of max power for Super Speed #50

Closed richardbarlow closed 5 years ago

richardbarlow commented 5 years ago

The 'MaxPower' field of the Configuration descriptor is in units of 2mA for everything pre-dating Super Speed and in units of 8mA for Super Speed. Also, it is actually a current (measured in Amps), not a power (measured in Watts); so the previous docstring was wrong/misleading when it talked about mW (milliwatts).

vpelletier commented 5 years ago

Nice catch & fix, thanks !