diff --git a/Cargo.toml b/Cargo.toml index 55fbfa75..9710953a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -41,7 +41,7 @@ nb = "1.1.0" num-traits = { version = "0.2.17", default-features = false} paste = "1.0.14" rtcc = { version = "0.3.0", optional = true } -stm32-usbd = { version = "0.6.0", optional = true } +stm32-usbd = { version = "0.7.0", optional = true } stm32f3 = { version = "0.15.1", default-features = false } void = { version = "1.0.2", default-features = false } diff --git a/examples/usb_serial.rs b/examples/usb_serial.rs index 749bbead..d7e34a64 100644 --- a/examples/usb_serial.rs +++ b/examples/usb_serial.rs @@ -68,10 +68,12 @@ fn main() -> ! { let mut serial = SerialPort::new(&usb_bus); let mut usb_dev = UsbDeviceBuilder::new(&usb_bus, UsbVidPid(0x16c0, 0x27dd)) - .manufacturer("Fake company") - .product("Serial port") - .serial_number("TEST") .device_class(USB_CLASS_CDC) + .strings(&[StringDescriptors::default() + .serial_number("TEST_STM32_USB") + .manufacturer("Fake Company") + .product("Serial port product")]) + .unwrap() .build(); loop {