Skip to content

Commit 7ed5503

Browse files
committed
Fix the condition related to CFG_TUH_WCH_USBIP_USBFS macro
1 parent 879f78a commit 7ed5503

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

hw/bsp/ch32v20x/family.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ void USBHD_IRQHandler(void) {
3232
#if CFG_TUD_WCH_USBIP_USBFS
3333
tud_int_handler(0);
3434
#endif
35-
#if CFG_TUH_WCH_USBIP_USBFS
35+
#if defined(CFG_TUH_WCH_USBIP_USBFS) && CFG_TUH_WCH_USBIP_USBFS
3636
tuh_int_handler(0);
3737
#endif
3838
}

src/portable/wch/hcd_ch32_usbfs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
#include "tusb_option.h"
2828

29-
#if CFG_TUH_ENABLED && defined(TUP_USBIP_WCH_USBFS) && CFG_TUH_WCH_USBIP_USBFS
29+
#if CFG_TUH_ENABLED && defined(TUP_USBIP_WCH_USBFS) && defined(CFG_TUH_WCH_USBIP_USBFS) && CFG_TUH_WCH_USBIP_USBFS
3030

3131
#include "host/hcd.h"
3232
#include "host/usbh.h"

0 commit comments

Comments
 (0)