Skip to content

Commit

Permalink
examples: raspberry-pi-threads: Use new api
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick José Pereira <[email protected]>
  • Loading branch information
patrickelectric committed Nov 26, 2024
1 parent 2e05a4b commit db84dee
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions examples/raspberry-pi-threads.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ fn main() {
println!("Creating your navigator module!");
let nav = Arc::new(Mutex::new(Navigator::new()));

println!("Setting up your navigator, ahoy!");
nav.lock().unwrap().init();

// This code block creates a thread that updates the `sensor_data` periodically.
let sensor_data_cloned = sensor_data.clone();
let nav_cloned = nav.clone();
Expand Down

0 comments on commit db84dee

Please sign in to comment.