force re-enumerate for clean start

This commit is contained in:
King Kévin 2016-04-12 09:25:04 +02:00
parent 9e69d8f302
commit 6bced0adea
1 changed files with 1 additions and 1 deletions

View File

@ -349,7 +349,7 @@ static void cdcacm_set_config(usbd_device *usbd_dev, uint16_t wValue)
void cdcacm_setup(void)
{
//usb_disconnect(); // force re-enumerate (useful if there is a bootloader using another USB profile)
usb_disconnect(); // force re-enumerate (useful after a restart or if there is a bootloader using another USB profile)
/* initialize USB */
usb_device = usbd_init(&st_usbfs_v1_usb_driver, &device_descriptor, &config, usb_strings, 3, usbd_control_buffer, sizeof(usbd_control_buffer));