Skip to content

Commit

Permalink
Copy pasta fix
Browse files Browse the repository at this point in the history
  • Loading branch information
diondokter committed Jun 17, 2024
1 parent aa1d153 commit 3365104
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -163,13 +163,12 @@ pub fn init() -> Result<(), Error> {
let heap_start = HEAP_MEMORY.as_mut_ptr() as *mut _;
let heap_size = HEAP_MEMORY.len() * core::mem::size_of::<u32>();
cortex_m::interrupt::free(|cs| {
*LIBRARY_ALLOCATOR.borrow(cs).borrow_mut() =
Some(Heap::new(heap_start, heap_size))
*LIBRARY_ALLOCATOR.borrow(cs).borrow_mut() = Some(Heap::new(heap_start, heap_size))
});
}

// Tell nrf_modem what memory it can use.
static PARAMS: grounded::uninit::GroundedCell<nrfxlib_sys::nrf_modem_init_params> =
static PARAMS: grounded::uninit::GroundedCell<nrfxlib_sys::nrf_modem_init_params_t> =
grounded::uninit::GroundedCell::uninit();

let params = sys::nrf_modem_init_params_t {
Expand Down

0 comments on commit 3365104

Please sign in to comment.