You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm noticing when using usbd-serial with a version of 0.2.0 or above
this seems to cause issues when creating the serial port
let usb_bus = UsbBus::new(usb,unsafe{&mutEP_MEMORY});letmut serial = usbd_serial::SerialPort::new(&usb_bus);
mismatched types
`UsbBusAllocator<UsbBus<USB>>` and `UsbBusAllocator<_>` have similar names, but are actually distinct types
perhaps two different versions of crate `usb_device` are being used?rustc[Click for full compiler diagnostic](rust-analyzer-diagnostics-view:/diagnostic%20message%20%5B0%5D?0)
usb_cdc.rs(30, 22): arguments to this function are incorrect
bus.rs(149, 1): `UsbBusAllocator<UsbBus<USB>>` is defined in crate `usb_device`
bus.rs(152, 1): `UsbBusAllocator<_>` is defined in crate `usb_device`
serial_port.rs(49, 12): associated function defined here
Also when using usb-device 0.3.0 and above
letmut usb_dev = UsbDeviceBuilder::new(&usb_bus,UsbVidPid(0x16c0,0x27dd)).manufacturer("Fake company").product("Serial port").serial_number("TEST").device_class(usbd_serial::USB_CLASS_CDC).max_packet_size_0(64)// Size required for HS, and ok for FS.build();
mismatched types
`UsbBusAllocator<UsbBus<USB>>` and `UsbBusAllocator<_>` have similar names, but are actually distinct types
perhaps two different versions of crate `usb_device` are being used?rustcClick for full compiler diagnostic
usb_cdc.rs(32, 23): arguments to this function are incorrect
bus.rs(149, 1): `UsbBusAllocator<UsbBus<USB>>` is defined in crate `usb_device`
bus.rs(152, 1): `UsbBusAllocator<_>` is defined in crate `usb_device`
device_builder.rs(85, 12): associated function defined here
The text was updated successfully, but these errors were encountered:
I'm noticing when using usbd-serial with a version of 0.2.0 or above
this seems to cause issues when creating the serial port
Also when using usb-device 0.3.0 and above
The text was updated successfully, but these errors were encountered: