Remove serial number

It doesn't work with windows. It seems that the USB device goes into low
power state and then the serial number string descriptor cannot be read.
This commit is contained in:
Jakob Lechner 2025-04-03 01:00:12 +02:00
parent cd44e736db
commit b9a37ff54d
3 changed files with 1 additions and 5 deletions

1
.gitignore vendored
View file

@ -1,3 +1,2 @@
/target
/.direnv
/src/serial_number.rs

View file

@ -16,7 +16,6 @@ use usbd_storage::subclass::Command;
use usbd_storage::transport::bbb::{BulkOnly, BulkOnlyError};
use usbd_storage::transport::TransportError;
mod serial_number;
#[link_section = ".start_block"]
#[used]
@ -126,8 +125,7 @@ fn main() -> ! {
let mut usb_device = UsbDeviceBuilder::new(&usb_bus, UsbVidPid(0xcafe, 0x4002))
.strings(&[StringDescriptors::new(LangID::EN)
.manufacturer("jalr")
.product("RAM Mass Storage")
.serial_number(serial_number::SERIAL)])
.product("RAM Mass Storage")])
.unwrap()
.device_class(0x08)
.self_powered(false)

View file

@ -1 +0,0 @@
pub const SERIAL: &str = "example-4711";