Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
dkhayes117 committed Sep 8, 2023
1 parent b6eec0b commit 55aeed0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ mod lte_link;
mod sms;
pub(crate) mod socket;
mod tcp_stream;
pub mod trace;
mod udp_socket;
pub(crate) mod waker_node_list;
pub mod trace;

pub use no_std_net;
pub use nrfxlib_sys;
Expand Down Expand Up @@ -107,7 +107,7 @@ pub async fn init(mode: SystemMode) -> Result<(), Error> {
},
tx: nrfxlib_sys::nrf_modem_shmem_cfg__bindgen_ty_2 {
// Follows on from control buffer
base: SHMEM_BASE + trace_size + 0x2000,
base: SHMEM_BASE + trace_size + 0x2000,
// This is the amount specified in the NCS 1.5.1 release.
size: 0x0000_2000,
},
Expand Down
6 changes: 3 additions & 3 deletions src/trace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ pub async fn trace_get(timeout: i32) -> Result<&'static [nrf_modem_trace_data],
let mut frag_ptr = core::ptr::null_mut() as *mut nrf_modem_trace_data;
let mut length: usize = 0;

let result = unsafe { nrf_modem_trace_get(&mut frag_ptr as *mut _, &mut length as *mut _, timeout) }
as isize;

let result =
unsafe { nrf_modem_trace_get(&mut frag_ptr as *mut _, &mut length as *mut _, timeout) }
as isize;

// // If frags or nfrags is null
// const NRF_FAULT: isize = -(nrfxlib_sys::NRF_EINPROGRESS as isize);
Expand Down

0 comments on commit 55aeed0

Please sign in to comment.