Change USB Configuration to "Bus Powered"

This commit is contained in:
pwpiwi 2017-11-28 21:22:29 +01:00 committed by GitHub
commit f380317220
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -77,8 +77,8 @@ static const char cfgDescriptor[] = {
0x02, // CbNumInterfaces
0x01, // CbConfigurationValue
0x00, // CiConfiguration
0xC0, // CbmAttributes (Self Powered - for those with a battery)
0x4B, // CMaxPower (150mA max current drawn from bus without battery)
0x80, // CbmAttributes (Bus Powered)
0x4B, // CMaxPower (150mA max current drawn from bus)
/* Interface 0 Descriptor: Communication Class Interface */
0x09, // bLength