aboutsummaryrefslogtreecommitdiff
path: root/examples/resource-user-struct.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/resource-user-struct.rs')
-rw-r--r--examples/resource-user-struct.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/resource-user-struct.rs b/examples/resource-user-struct.rs
index ae1918d0..a4478ce6 100644
--- a/examples/resource-user-struct.rs
+++ b/examples/resource-user-struct.rs
@@ -29,11 +29,11 @@ mod app {
struct Local {}
#[init]
- fn init(_: init::Context) -> (Shared, Local, init::Monotonics) {
+ fn init(_: init::Context) -> (Shared, Local) {
rtic::pend(Interrupt::UART0);
rtic::pend(Interrupt::UART1);
- (Shared { shared: 0 }, Local {}, init::Monotonics())
+ (Shared { shared: 0 }, Local {})
}
// `shared` cannot be accessed from this context