diff options
| author | Emil Fresk <emil.fresk@gmail.com> | 2021-02-23 19:29:15 +0100 |
|---|---|---|
| committer | Emil Fresk <emil.fresk@gmail.com> | 2021-02-23 19:29:15 +0100 |
| commit | 210197d07955e760c031e05d1cc79689290335dc (patch) | |
| tree | ada0510f53d595f32451efa5b93d8b1068c08401 /ui/single/local-cfg-task-local-err.rs | |
| parent | 26870ae12ede1a70ca5685a7c0e0113c6bed58dd (diff) | |
Remove flags, updates UI tests
Diffstat (limited to 'ui/single/local-cfg-task-local-err.rs')
| -rw-r--r-- | ui/single/local-cfg-task-local-err.rs | 17 |
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) |
