diff options
| author | sawyer bristol <[email protected]> | 2024-12-02 15:44:29 -0700 |
|---|---|---|
| committer | sawyer bristol <[email protected]> | 2024-12-02 15:44:29 -0700 |
| commit | 8068f7092efcc8f42fa2031d3977dcade74981d2 (patch) | |
| tree | 47486232c9ad537d77b913a6fa139fbaa0da2526 /embassy-usb/src/descriptor.rs | |
| parent | f25830a5b67caad4a89eeed2cd602ac12198f6c5 (diff) | |
fix bug and allow bcd to be .0
Diffstat (limited to 'embassy-usb/src/descriptor.rs')
| -rw-r--r-- | embassy-usb/src/descriptor.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/embassy-usb/src/descriptor.rs b/embassy-usb/src/descriptor.rs index 8824a0355..09ce50951 100644 --- a/embassy-usb/src/descriptor.rs +++ b/embassy-usb/src/descriptor.rs | |||
| @@ -325,7 +325,7 @@ pub(crate) fn device_descriptor(config: &Config) -> [u8; 18] { | |||
| 325 | [ | 325 | [ |
| 326 | 18, // bLength | 326 | 18, // bLength |
| 327 | 0x01, // bDescriptorType | 327 | 0x01, // bDescriptorType |
| 328 | 0x10, | 328 | config.bcd_usb as u8, |
| 329 | (config.bcd_usb >> 8) as u8, // bcdUSB | 329 | (config.bcd_usb >> 8) as u8, // bcdUSB |
| 330 | config.device_class, // bDeviceClass | 330 | config.device_class, // bDeviceClass |
| 331 | config.device_sub_class, // bDeviceSubClass | 331 | config.device_sub_class, // bDeviceSubClass |
