From ba02a48873a2bf922e03a922d2ef0f6902d25909 Mon Sep 17 00:00:00 2001 From: sakumisu <1203593632@qq.com> Date: Mon, 15 Jul 2024 18:06:44 +0800 Subject: fix(demo/winusb1.0_template): fix WINUSB_IFx_WCIDProperties array --- demo/winusb1.0_template.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/demo/winusb1.0_template.c b/demo/winusb1.0_template.c index c1fbba93..ccec686c 100644 --- a/demo/winusb1.0_template.c +++ b/demo/winusb1.0_template.c @@ -151,18 +151,16 @@ __ALIGN_BEGIN const uint8_t WINUSB_IF1_WCIDProperties [142] __ALIGN_END = { const uint8_t *WINUSB_IFx_WCIDProperties[] = { WINUSB_IF0_WCIDProperties, +#if DOUBLE_WINUSB == 1 WINUSB_IF1_WCIDProperties, +#endif }; struct usb_msosv1_descriptor msosv1_desc = { .string = WCID_StringDescriptor_MSOS, .vendor_code = WCID_VENDOR_CODE, .compat_id = WINUSB_WCIDDescriptor, -#if DOUBLE_WINUSB == 0 - .comp_id_property = &WINUSB_IF0_WCIDProperties, -#else .comp_id_property = WINUSB_IFx_WCIDProperties, -#endif }; #define WINUSB_IN_EP 0x81 -- cgit v1.3.1