aboutsummaryrefslogtreecommitdiff
path: root/ui/single/local-cfg-task-local-err.rs
diff options
context:
space:
mode:
Diffstat (limited to 'ui/single/local-cfg-task-local-err.rs')
-rw-r--r--ui/single/local-cfg-task-local-err.rs17
1 files changed, 10 insertions, 7 deletions
diff --git a/ui/single/local-cfg-task-local-err.rs b/ui/single/local-cfg-task-local-err.rs
index 412f614..d4752ed 100644
--- a/ui/single/local-cfg-task-local-err.rs
+++ b/ui/single/local-cfg-task-local-err.rs
@@ -26,15 +26,18 @@ mod app {
}
#[init]
- fn init(_: init::Context) -> init::LateResources {
+ fn init(_: init::Context) -> (init::LateResources, init::Monotonics) {
rtic::pend(Interrupt::UART0);
rtic::pend(Interrupt::UART1);
- init::LateResources {
- #[cfg(feature = "feature_l2")]
- l2: 2,
- #[cfg(not(feature = "feature_l2"))]
- l2: 5,
- }
+ (
+ init::LateResources {
+ #[cfg(feature = "feature_l2")]
+ l2: 2,
+ #[cfg(not(feature = "feature_l2"))]
+ l2: 5,
+ },
+ init::Monotonics(),
+ )
}
// l1 ok (task_local)