mirror of
https://github.com/embassy-rs/embassy.git
synced 2025-09-27 12:20:37 +00:00
fix bug and allow bcd to be .0
This commit is contained in:
parent
f25830a5b6
commit
8068f7092e
@ -325,7 +325,7 @@ pub(crate) fn device_descriptor(config: &Config) -> [u8; 18] {
|
||||
[
|
||||
18, // bLength
|
||||
0x01, // bDescriptorType
|
||||
0x10,
|
||||
config.bcd_usb as u8,
|
||||
(config.bcd_usb >> 8) as u8, // bcdUSB
|
||||
config.device_class, // bDeviceClass
|
||||
config.device_sub_class, // bDeviceSubClass
|
||||
|
Loading…
x
Reference in New Issue
Block a user