chore(main): remove test code for flash storage

This commit is contained in:
Naxdy 2024-03-26 23:09:38 +01:00
parent 354970709f
commit 483a51c265
Signed by: Naxdy
GPG key ID: CC15075846BCE91B

View file

@ -15,7 +15,7 @@ use defmt::{debug, info, Format};
use embassy_executor::Executor;
use embassy_rp::{
bind_interrupts,
flash::{Async, Flash, ERASE_SIZE},
flash::{Async, Flash},
gpio::{self, Input},
multicore::{spawn_core1, Stack},
peripherals::USB,
@ -79,12 +79,6 @@ fn main() -> ! {
let mut uid = [0u8; 8];
flash.blocking_unique_id(&mut uid).unwrap();
flash
.blocking_erase(ADDR_OFFSET, ADDR_OFFSET + ERASE_SIZE as u32)
.unwrap();
flash.blocking_write(ADDR_OFFSET, &[0xAB]).unwrap();
debug!("Read unique id: {:02X}", uid);
spawn_core1(p.CORE1, unsafe { &mut CORE1_STACK }, move || {