From 14d725cbf7a9d8755c496096962ac72c47e6e765 Mon Sep 17 00:00:00 2001 From: Boris Faure Date: Mon, 15 Jul 2024 23:00:20 +0200 Subject: [PATCH] config: set SerialNumber to the version in Cargo.toml --- src/config.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config.rs b/src/config.rs index 10b7b88..001fbfc 100644 --- a/src/config.rs +++ b/src/config.rs @@ -57,7 +57,7 @@ pub fn usb_config() -> embassy_usb::Config<'static> { let mut config = embassy_usb::Config::new(VID, PID); config.manufacturer = Some(MANUFACTURER); config.product = Some(PRODUCT); - config.serial_number = Some("CARGO_PKG_VERSION"); + config.serial_number = Some(env!("CARGO_PKG_VERSION")); config.max_power = 100; config.max_packet_size_0 = 64;