Removed dummy character string from examples due to api change in: 7a5da60
This commit is contained in:
@@ -165,7 +165,6 @@ const struct usb_config_descriptor config = {
|
||||
};
|
||||
|
||||
static const char *usb_strings[] = {
|
||||
"x",
|
||||
"Black Sphere Technologies",
|
||||
"HID Demo",
|
||||
"DEMO",
|
||||
@@ -254,7 +253,7 @@ int main(void)
|
||||
AFIO_MAPR |= AFIO_MAPR_SWJ_CFG_JTAG_OFF_SW_ON;
|
||||
gpio_set_mode(GPIOA, GPIO_MODE_INPUT, 0, GPIO15);
|
||||
|
||||
usbd_dev = usbd_init(&stm32f103_usb_driver, &dev, &config, usb_strings, 4);
|
||||
usbd_dev = usbd_init(&stm32f103_usb_driver, &dev, &config, usb_strings, 3);
|
||||
usbd_register_set_config_callback(usbd_dev, hid_set_config);
|
||||
|
||||
gpio_set(GPIOA, GPIO15);
|
||||
|
||||
Reference in New Issue
Block a user