diff options
Diffstat (limited to 'examples/resource-user-struct.rs')
-rw-r--r-- | examples/resource-user-struct.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/resource-user-struct.rs b/examples/resource-user-struct.rs index dbda9a3f..a5bd0ddf 100644 --- a/examples/resource-user-struct.rs +++ b/examples/resource-user-struct.rs @@ -26,9 +26,11 @@ mod app { } #[init] - fn init(_: init::Context) { + fn init(_: init::Context) -> init::LateResources { rtic::pend(Interrupt::UART0); rtic::pend(Interrupt::UART1); + + init::LateResources {} } // `shared` cannot be accessed from this context |