diff --git a/examples/stm32h7/src/bin/rng.rs b/examples/stm32h7/src/bin/rng.rs index f779b2f69..fea88c410 100644 --- a/examples/stm32h7/src/bin/rng.rs +++ b/examples/stm32h7/src/bin/rng.rs @@ -8,12 +8,12 @@ mod example_common; use embassy::executor::Spawner; use embassy::time::{Duration, Timer}; +use embassy::traits::rng::Random as _; use embassy_stm32::gpio::{Level, Output, Speed}; +use embassy_stm32::rng::Random; use embassy_stm32::Peripherals; use embedded_hal::digital::v2::OutputPin; use example_common::*; -use embassy_stm32::rng::Random; -use embassy::traits::rng::Random as _; #[embassy::main] async fn main(_spawner: Spawner, p: Peripherals) { @@ -24,11 +24,11 @@ async fn main(_spawner: Spawner, p: Peripherals) { let mut rng = Random::new(p.RNG); loop { - info!("high {}", unwrap!(rng.next(16).await) ); + info!("high {}", unwrap!(rng.next(16).await)); unwrap!(led.set_high()); Timer::after(Duration::from_millis(500)).await; - info!("low {}", unwrap!(rng.next(16).await) ); + info!("low {}", unwrap!(rng.next(16).await)); unwrap!(led.set_low()); Timer::after(Duration::from_millis(500)).await; }