usb descriptor: we are bus powered and can consume up to 400mA (#3933)

This commit is contained in:
Andrey G 2022-02-14 00:12:22 +03:00 committed by GitHub
parent 93b14bc65a
commit 0e8e5acd94
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -83,8 +83,8 @@ static const uint8_t vcom_configuration_descriptor_data[DESCRIPTOR_SIZE] = {
NUM_INTERFACES,/* bNumInterfaces. */
0x01, /* bConfigurationValue. */
0, /* iConfiguration. */
0xC0, /* bmAttributes (self powered). */
100), /* bMaxPower (200mA). */
0x80, /* bmAttributes (bus powered). */
200), /* bMaxPower (400mA). */
#if HAL_USE_USB_MSD
USB_DESC_INTERFACE (MSD_IF, /* bInterfaceNumber. */
0x00, /* bAlternateSetting. */