summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsakumisu <[email protected]>2022-03-15 10:56:13 +0800
committersakumisu <[email protected]>2022-03-15 10:56:13 +0800
commita5519d245fafdfa90903345e1d61e13fff07fafd (patch)
treec326b3ea988d088bb85f09d51faee1a9d5e913e4
parent2fae577fae529ce2036d0ba93b3a4fd815e15f42 (diff)
fix cdc bmCapabilities value
-rw-r--r--class/cdc/usb_cdc.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/class/cdc/usb_cdc.h b/class/cdc/usb_cdc.h
index 0f131bbd..92be79d1 100644
--- a/class/cdc/usb_cdc.h
+++ b/class/cdc/usb_cdc.h
@@ -335,7 +335,7 @@ struct cdc_ecm_descriptor {
0x05, /* bLength */ \
CDC_CS_INTERFACE, /* bDescriptorType */ \
CDC_FUNC_DESC_CALL_MANAGEMENT, /* bDescriptorSubtype */ \
- bFirstInterface, /* bmCapabilities */ \
+ 0x00, /* bmCapabilities */ \
(uint8_t)(bFirstInterface + 1), /* bDataInterface */ \
0x04, /* bLength */ \
CDC_CS_INTERFACE, /* bDescriptorType */ \
@@ -400,7 +400,7 @@ struct cdc_ecm_descriptor {
0x05, /* bLength */ \
CDC_CS_INTERFACE, /* bDescriptorType */ \
CDC_FUNC_DESC_CALL_MANAGEMENT, /* bDescriptorSubtype */ \
- bFirstInterface, /* bmCapabilities */ \
+ 0x00, /* bmCapabilities */ \
(uint8_t)(bFirstInterface + 1), /* bDataInterface */ \
0x04, /* bLength */ \
CDC_CS_INTERFACE, /* bDescriptorType */ \