mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-22 22:38:08 +00:00
trezorhal: update usb maxpower
This commit is contained in:
parent
efd926208d
commit
d6681efff2
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user