]> cvs.zerfleddert.de Git - proxmark3-svn/commitdiff
fix: USB Power requirements
authorpwpiwi <pwpiwi@users.noreply.github.com>
Fri, 17 Nov 2017 08:13:37 +0000 (09:13 +0100)
committerpwpiwi <pwpiwi@users.noreply.github.com>
Fri, 17 Nov 2017 08:13:37 +0000 (09:13 +0100)
* correctly indicate the maximum current drawn from the USB bus

common/usb_cdc.c

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