diff options
| author | sawyer bristol <[email protected]> | 2024-12-02 15:44:01 -0700 |
|---|---|---|
| committer | sawyer bristol <[email protected]> | 2024-12-02 15:44:01 -0700 |
| commit | f25830a5b67caad4a89eeed2cd602ac12198f6c5 (patch) | |
| tree | d4e2cfe5c8d41378e1aa48d722b726174862a4e2 | |
| parent | d0b1819aa52666a4fca37211ddab82b01eea84ce (diff) | |
bcd default to 2.1
| -rw-r--r-- | embassy-usb/src/builder.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/embassy-usb/src/builder.rs b/embassy-usb/src/builder.rs index c7d83e710..28a449a9f 100644 --- a/embassy-usb/src/builder.rs +++ b/embassy-usb/src/builder.rs | |||
| @@ -17,7 +17,7 @@ pub struct Config<'a> { | |||
| 17 | 17 | ||
| 18 | /// Device BCD USB version. | 18 | /// Device BCD USB version. |
| 19 | /// | 19 | /// |
| 20 | /// Default: `0x02` ("2.1") | 20 | /// Default: `0x0210` ("2.1") |
| 21 | pub bcd_usb: u16, | 21 | pub bcd_usb: u16, |
| 22 | 22 | ||
| 23 | /// Device class code assigned by USB.org. Set to `0xff` for vendor-specific | 23 | /// Device class code assigned by USB.org. Set to `0xff` for vendor-specific |
| @@ -113,7 +113,7 @@ impl<'a> Config<'a> { | |||
| 113 | vendor_id: vid, | 113 | vendor_id: vid, |
| 114 | product_id: pid, | 114 | product_id: pid, |
| 115 | device_release: 0x0010, | 115 | device_release: 0x0010, |
| 116 | bcd_usb: 0x02, | 116 | bcd_usb: 0x0210, |
| 117 | manufacturer: None, | 117 | manufacturer: None, |
| 118 | product: None, | 118 | product: None, |
| 119 | serial_number: None, | 119 | serial_number: None, |
