1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-13 19:18:56 +00:00

trezorhal: update usb maxpower

This commit is contained in:
Pavol Rusnak 2018-01-26 17:11:52 +01:00
parent efd926208d
commit d6681efff2
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -97,7 +97,7 @@ void usb_init(const usb_dev_info_t *dev_info) {
usb_config_desc->bConfigurationValue = 0x01;
usb_config_desc->iConfiguration = USBD_IDX_CONFIG_STR;
usb_config_desc->bmAttributes = 0x80; // 0x80 = bus powered; 0xC0 = self powered
usb_config_desc->bMaxPower = 0xFA; // Maximum Power Consumption in 2mA units
usb_config_desc->bMaxPower = 0x32; // Maximum Power Consumption in 2mA units
// Pointer to interface descriptor data
usb_next_iface_desc = (usb_interface_descriptor_t *)(usb_config_buf + usb_config_desc->wTotalLength);