diff options
author | 2021-02-20 19:22:45 +0100 | |
---|---|---|
committer | 2021-02-20 19:22:45 +0100 | |
commit | 555f36857ec93bed26ff4249593992f500b7c4ab (patch) | |
tree | 97db7bea39684b64f33d208bc4c413f469ae53e5 /examples/big-struct-opt.rs | |
parent | d02f9a02411de1bc79490c86541e95879b7b19b8 (diff) | |
download | rtic-555f36857ec93bed26ff4249593992f500b7c4ab.tar.gz rtic-555f36857ec93bed26ff4249593992f500b7c4ab.tar.zst rtic-555f36857ec93bed26ff4249593992f500b7c4ab.zip |
Test fixes
Diffstat (limited to 'examples/big-struct-opt.rs')
-rw-r--r-- | examples/big-struct-opt.rs | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/examples/big-struct-opt.rs b/examples/big-struct-opt.rs index 85ec5e61..dc6e72f7 100644 --- a/examples/big-struct-opt.rs +++ b/examples/big-struct-opt.rs @@ -31,7 +31,7 @@ mod app { } #[init] - fn init(_: init::Context) -> init::LateResources { + fn init(_: init::Context) -> (init::LateResources, init::Monotonics) { let big_struct = unsafe { static mut BIG_STRUCT: MaybeUninit<BigStruct> = MaybeUninit::uninit(); @@ -40,9 +40,12 @@ mod app { &mut *BIG_STRUCT.as_mut_ptr() }; - init::LateResources { - // assign the reference so we can use the resource - big_struct, - } + ( + init::LateResources { + // assign the reference so we can use the resource + big_struct, + }, + init::Monotonics(), + ) } } |