Skip to content

Commit

Permalink
Fix build errors and warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
sosthene-nitrokey committed Sep 15, 2023
1 parent c37ef1f commit 1ac519c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions runners/embedded/src/bin/app-nrf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ mod app {
#[cfg(feature = "se050")]
let mut se050 = se05x::se05x::Se05X::new(twim, 0x48, se050_timer);

#[cfg(feature = "se050")]
let seed = (|| {
use se05x::se05x::commands::GetRandom;
se050.enable()?;
Expand Down
6 changes: 6 additions & 0 deletions runners/embedded/src/soc_lpc55/init.rs
Original file line number Diff line number Diff line change
Expand Up @@ -742,6 +742,12 @@ impl Stage5 {
),
);

#[cfg(not(feature = "se050"))]
{
let _ = self.se050_timer;
let _ = self.se050_i2c;
}

Stage6 {
status: self.status,
peripherals: self.peripherals,
Expand Down

0 comments on commit 1ac519c

Please sign in to comment.