diff options
| author | sakumisu <[email protected]> | 2022-03-15 10:56:13 +0800 |
|---|---|---|
| committer | sakumisu <[email protected]> | 2022-03-15 10:56:13 +0800 |
| commit | a5519d245fafdfa90903345e1d61e13fff07fafd (patch) | |
| tree | c326b3ea988d088bb85f09d51faee1a9d5e913e4 | |
| parent | 2fae577fae529ce2036d0ba93b3a4fd815e15f42 (diff) | |
fix cdc bmCapabilities value
| -rw-r--r-- | class/cdc/usb_cdc.h | 4 |
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 */ \ |
