mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-02-01 18:30:56 +00:00
trezorhal/usb: fix string descriptors
This commit is contained in:
parent
112893c46f
commit
115bd995eb
@ -200,12 +200,12 @@ static uint8_t *usb_get_serial_str_descriptor(USBD_SpeedTypeDef speed, uint16_t
|
||||
}
|
||||
|
||||
static uint8_t *usb_get_config_str_descriptor(USBD_SpeedTypeDef speed, uint16_t *length) {
|
||||
*length = 0;
|
||||
USBD_GetString(UNCONST(""), usb_str_buf, length);
|
||||
return usb_str_buf;
|
||||
}
|
||||
|
||||
static uint8_t *usb_get_interface_str_descriptor(USBD_SpeedTypeDef speed, uint16_t *length) {
|
||||
*length = 0;
|
||||
USBD_GetString(UNCONST(""), usb_str_buf, length);
|
||||
return usb_str_buf;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user