RTIC: Examples cargo fmt

This commit is contained in:
Henrik Tjäder 2023-02-01 22:55:38 +01:00
parent 4e639e1f68
commit 0f5178a48f
4 changed files with 2 additions and 8 deletions

View file

@ -29,12 +29,9 @@ mod app {
(Shared {}, Local {}) (Shared {}, Local {})
} }
#[task] #[task]
async fn sender1(_c: sender1::Context, mut sender: Sender<'static, u32, CAPACITY>) { async fn sender1(_c: sender1::Context, mut sender: Sender<'static, u32, CAPACITY>) {
hprintln!("Sender 1 sending: 1 {:?}", sender.send(1).await); hprintln!("Sender 1 sending: 1 {:?}", sender.send(1).await);
debug::exit(debug::EXIT_SUCCESS); // Exit QEMU simulator debug::exit(debug::EXIT_SUCCESS); // Exit QEMU simulator
} }
} }

View file

@ -35,6 +35,4 @@ mod app {
debug::exit(debug::EXIT_SUCCESS); // Exit QEMU simulator debug::exit(debug::EXIT_SUCCESS); // Exit QEMU simulator
} }
} }

View file

@ -44,5 +44,4 @@ mod app {
hprintln!("Sender 1 try sending: 2 {:?}", sender.try_send(2)); hprintln!("Sender 1 try sending: 2 {:?}", sender.try_send(2));
debug::exit(debug::EXIT_SUCCESS); // Exit QEMU simulator debug::exit(debug::EXIT_SUCCESS); // Exit QEMU simulator
} }
} }