From 115bd995eb279cb68972c33954d9c2d735bb7ffe Mon Sep 17 00:00:00 2001 From: Jan Pochyla Date: Tue, 22 Aug 2017 10:49:32 +0200 Subject: [PATCH] trezorhal/usb: fix string descriptors --- embed/trezorhal/usb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/embed/trezorhal/usb.c b/embed/trezorhal/usb.c index df5c3b51d..4e93e29a9 100644 --- a/embed/trezorhal/usb.c +++ b/embed/trezorhal/usb.c @@ -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; }