trezorhal: update usb maxpower

pull/25/head
Pavol Rusnak 7 years ago
parent efd926208d
commit d6681efff2
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

@ -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…
Cancel
Save