Skip to content

Commit d2ea59f

Browse files
authored
add descriptor to the firmware
1 parent 1074a61 commit d2ea59f

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

  • device/usb-bulk-stm32-nucleo-u545re/src

device/usb-bulk-stm32-nucleo-u545re/src/main.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,12 @@ async fn main(_spawner: Spawner) {
8383
// can be used by libusb/rusb software without needing a custom driver or INF file.
8484
// In principle you might want to call msos_feature() just on a specific function,
8585
// if your device also has other functions that still use standard class drivers.
86-
// builder.msos_descriptor(windows_version::WIN8_1, 0);
87-
// builder.msos_feature(msos::CompatibleIdFeatureDescriptor::new("WINUSB", ""));
88-
// builder.msos_feature(msos::RegistryPropertyFeatureDescriptor::new(
89-
// "DeviceInterfaceGUIDs",
90-
// msos::PropertyData::RegMultiSz(DEVICE_INTERFACE_GUIDS),
91-
// ));
86+
builder.msos_descriptor(windows_version::WIN8_1, 0);
87+
builder.msos_feature(msos::CompatibleIdFeatureDescriptor::new("WINUSB", ""));
88+
builder.msos_feature(msos::RegistryPropertyFeatureDescriptor::new(
89+
"DeviceInterfaceGUIDs",
90+
msos::PropertyData::RegMultiSz(DEVICE_INTERFACE_GUIDS),
91+
));
9292

9393
// Add a vendor-specific function (class 0xFF), and corresponding interface,
9494
// that uses our custom handler.

0 commit comments

Comments
 (0)