summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsakumisu <[email protected]>2024-07-15 18:06:44 +0800
committersakumisu <[email protected]>2024-07-15 18:09:55 +0800
commitba02a48873a2bf922e03a922d2ef0f6902d25909 (patch)
treebcf39239dc2b73c9bbd07b8c12dfca75e24548db
parentc766cbe91ec7e538995eddf6155e778ed0f5f1b0 (diff)
fix(demo/winusb1.0_template): fix WINUSB_IFx_WCIDProperties array
-rw-r--r--demo/winusb1.0_template.c6
1 files 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