Skip to content

Commit

Permalink
config: set SerialNumber to the version in Cargo.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
borisfaure committed Jul 15, 2024
1 parent 00fa56f commit 14d725c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 14d725c

Please sign in to comment.