Skip to content

Commit

Permalink
fix(os-name)!: use the newly introduced constant
Browse files Browse the repository at this point in the history
  • Loading branch information
ROMemories committed Dec 12, 2024
1 parent fa874ae commit 6a46c99
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/usb-keyboard/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const HID_WRITER_BUFFER_SIZE: usize = 8;
#[ariel_os::config(usb)]
const USB_CONFIG: ariel_os::reexports::embassy_usb::Config = {
let mut config = ariel_os::reexports::embassy_usb::Config::new(0xc0de, 0xcafe);
config.manufacturer = Some("Ariel OS");
config.manufacturer = Some(ariel_os::buildinfo::OS_NAME);
config.product = Some("HID keyboard example");
config.serial_number = Some("12345678");
config.max_power = 100;
Expand Down
2 changes: 1 addition & 1 deletion examples/usb-serial/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const MAX_FULL_SPEED_PACKET_SIZE: u8 = 64;
#[ariel_os::config(usb)]
const USB_CONFIG: ariel_os::reexports::embassy_usb::Config = {
let mut config = ariel_os::reexports::embassy_usb::Config::new(0xc0de, 0xcafe);
config.manufacturer = Some("Ariel OS");
config.manufacturer = Some(ariel_os::buildinfo::OS_NAME);
config.product = Some("USB serial example");
config.serial_number = Some("12345678");
config.max_power = 100;
Expand Down
1 change: 1 addition & 0 deletions src/ariel-os-embassy/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ embassy-usb = { workspace = true, optional = true }
embedded-hal = { workspace = true }
embedded-hal-async = { workspace = true }

ariel-os-buildinfo = { workspace = true }
ariel-os-embassy-common = { workspace = true }
ariel-os-hal = { path = "../ariel-os-hal" }
ariel-os-threads = { path = "../ariel-os-threads", optional = true }
Expand Down
2 changes: 1 addition & 1 deletion src/ariel-os-embassy/src/usb.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ pub(crate) fn config() -> embassy_usb::Config<'static> {
{
// Create embassy-usb Config
let mut config = embassy_usb::Config::new(0xc0de, 0xcafe);
config.manufacturer = Some("Embassy");
config.manufacturer = Some(ariel_os_buildinfo::OS_NAME);
config.product = Some("USB-Ethernet example");
config.serial_number = Some("12345678");
config.max_power = 100;
Expand Down

0 comments on commit 6a46c99

Please sign in to comment.