fix bug and allow bcd to be .0

This commit is contained in:
sawyer bristol 2024-12-02 15:44:29 -07:00
parent f25830a5b6
commit 8068f7092e

View File

@ -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