force re-enumerate for clean start
This commit is contained in:
parent
9e69d8f302
commit
6bced0adea
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue