Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: update pages #382

Draft
wants to merge 11 commits into
base: main
Choose a base branch
from
Prev Previous commit
Next Next commit
testsuite/subghz: fix static_mut_refs warning
  • Loading branch information
newAM committed May 11, 2024
commit 3f94069e47ccd99c42122eec6efea42300e9e573
10 changes: 6 additions & 4 deletions testsuite/src/subghz.rs
Original file line number Diff line number Diff line change
Expand Up @@ -326,10 +326,12 @@ mod tests {
while rfbusys() {}
let start: u32 = DWT::cycle_count();
unwrap!(ta.sg.write_buffer(0, &DATA));
unwrap!(ta.sg.read_buffer(0, unsafe { &mut BUF }));
unwrap!(ta
.sg
.read_buffer(0, unsafe { unwrap!(core::ptr::addr_of_mut!(BUF).as_mut()) }));
let end: u32 = DWT::cycle_count();
defmt::info!("Cycles 255B: {}", end - start);
defmt::assert_eq!(DATA.as_ref(), unsafe { BUF }.as_ref());
defmt::assert_eq!(DATA, unsafe { BUF });

let mut buf: [u8; 0] = [];
while rfbusys() {}
Expand All @@ -348,10 +350,10 @@ mod tests {
while rfbusys() {}
let start: u32 = DWT::cycle_count();
unwrap!(sg.write_buffer(0, &DATA));
unwrap!(sg.read_buffer(0, unsafe { &mut BUF }));
unwrap!(sg.read_buffer(0, unsafe { unwrap!(core::ptr::addr_of_mut!(BUF).as_mut()) }));
let end: u32 = DWT::cycle_count();
defmt::info!("Cycles 255B: {}", end - start);
defmt::assert_eq!(DATA.as_ref(), unsafe { BUF }.as_ref());
defmt::assert_eq!(DATA, unsafe { BUF });

let mut buf: [u8; 0] = [];
while rfbusys() {}
Expand Down
Loading