fix: USB Power requirements

* correctly indicate the maximum current drawn from the USB bus
This commit is contained in:
pwpiwi 2017-11-17 09:13:37 +01:00
commit 0363be9358

View file

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