Skip to content

Commit 4745b23

Browse files
cumin777fpistm
authored andcommitted
fix(usb): route HAL v2 re-enumeration through PCD adapter
Signed-off-by: cumin <13809292481@163.com>
1 parent ba35658 commit 4745b23

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎libraries/USBDevice/src/usbd_if.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#include "usbd_cdc_if.h"
1212
#include "stm32yyxx_ll_system.h"
1313

14-
#if !defined(USBD_REENUM_DISABLED)
14+
#if !defined(USBD_REENUM_DISABLED) && !defined(USE_HALV2_DRIVER)
1515

1616
/*
1717
* Below, support for re-attaching to USB is handled. USB-attachment is

0 commit comments

Comments
 (0)