Skip to content

Commit

Permalink
Fixing passthrough example
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan-summers authored and richardeoin committed Nov 21, 2023
1 parent 63cdc5f commit a5fde4b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions examples/usb_passthrough.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,11 @@ fn main() -> ! {
let mut serial2 = usbd_serial::SerialPort::new(&usb2_bus);
let mut usb2_dev =
UsbDeviceBuilder::new(&usb2_bus, UsbVidPid(0x16c0, 0x27dd))
.manufacturer("Fake company")
.product("Serial port")
.serial_number("TEST PORT 2")
.strings(&[usb_device::device::StringDescriptors::default()
.manufacturer("Fake company")
.product("Serial port")
.serial_number("TEST PORT 1")])
.unwrap()
.device_class(usbd_serial::USB_CLASS_CDC)
.build();

Expand Down

0 comments on commit a5fde4b

Please sign in to comment.