From 483a51c2652e8af0e3884ef92834bb2fc20a0218 Mon Sep 17 00:00:00 2001 From: Naxdy Date: Tue, 26 Mar 2024 23:09:38 +0100 Subject: [PATCH] chore(main): remove test code for flash storage --- src/main.rs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/main.rs b/src/main.rs index 7dc1138..940197e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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 || {