aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rtic/examples/async-channel-no-receiver.rs3
-rw-r--r--rtic/examples/async-channel-no-sender.rs4
-rw-r--r--rtic/examples/async-channel-try.rs1
-rw-r--r--rtic/examples/async-delay.rs2
4 files changed, 2 insertions, 8 deletions
diff --git a/rtic/examples/async-channel-no-receiver.rs b/rtic/examples/async-channel-no-receiver.rs
index ffb78e4..02e6a22 100644
--- a/rtic/examples/async-channel-no-receiver.rs
+++ b/rtic/examples/async-channel-no-receiver.rs
@@ -29,12 +29,9 @@ mod app {
(Shared {}, Local {})
}
-
#[task]
async fn sender1(_c: sender1::Context, mut sender: Sender<'static, u32, CAPACITY>) {
-
hprintln!("Sender 1 sending: 1 {:?}", sender.send(1).await);
debug::exit(debug::EXIT_SUCCESS); // Exit QEMU simulator
}
-
}
diff --git a/rtic/examples/async-channel-no-sender.rs b/rtic/examples/async-channel-no-sender.rs
index 58e010d..0bdc7cb 100644
--- a/rtic/examples/async-channel-no-sender.rs
+++ b/rtic/examples/async-channel-no-sender.rs
@@ -33,8 +33,6 @@ mod app {
async fn receiver(_c: receiver::Context, mut receiver: Receiver<'static, u32, CAPACITY>) {
hprintln!("Receiver got: {:?}", receiver.recv().await);
- debug::exit(debug::EXIT_SUCCESS); // Exit QEMU simulator
+ debug::exit(debug::EXIT_SUCCESS); // Exit QEMU simulator
}
-
-
}
diff --git a/rtic/examples/async-channel-try.rs b/rtic/examples/async-channel-try.rs
index 4a79935..4c369ed 100644
--- a/rtic/examples/async-channel-try.rs
+++ b/rtic/examples/async-channel-try.rs
@@ -44,5 +44,4 @@ mod app {
hprintln!("Sender 1 try sending: 2 {:?}", sender.try_send(2));
debug::exit(debug::EXIT_SUCCESS); // Exit QEMU simulator
}
-
}
diff --git a/rtic/examples/async-delay.rs b/rtic/examples/async-delay.rs
index 6c79cf5..aa673dd 100644
--- a/rtic/examples/async-delay.rs
+++ b/rtic/examples/async-delay.rs
@@ -1,5 +1,5 @@
// examples/async-delay.rs
-//
+//
#![no_main]
#![no_std]
#![feature(type_alias_impl_trait)]