From 43b8c0c71ebbae6b0cbcb867fb90d6903e577ddf Mon Sep 17 00:00:00 2001 From: Til Blechschmidt Date: Mon, 1 Aug 2022 12:56:53 +0200 Subject: [PATCH] Remove commented out logging code --- embassy-nrf/src/qspi.rs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/embassy-nrf/src/qspi.rs b/embassy-nrf/src/qspi.rs index 88db7a01..6d7ebb4b 100644 --- a/embassy-nrf/src/qspi.rs +++ b/embassy-nrf/src/qspi.rs @@ -309,13 +309,10 @@ impl<'d, T: Instance, const FLASH_SIZE: usize> Qspi<'d, T, FLASH_SIZE> { } fn start_write(&mut self, address: usize, data: &[u8]) -> Result<(), Error> { - //info!("start_write ptr {}", data.as_ptr() as u32); assert_eq!(data.as_ptr() as u32 % 4, 0); - //info!("start_write OK ptr"); assert_eq!(data.len() as u32 % 4, 0); - //info!("start_write OK len"); assert_eq!(address as u32 % 4, 0); - //info!("start_write OK addr"); + if address > FLASH_SIZE { return Err(Error::OutOfBounds); } @@ -363,11 +360,8 @@ impl<'d, T: Instance, const FLASH_SIZE: usize> Qspi<'d, T, FLASH_SIZE> { pub async fn write(&mut self, address: usize, data: &[u8]) -> Result<(), Error> { let bomb = DropBomb::new(); - //info!("WRITE {} bytes at {}", data.len(), address); self.start_write(address, data)?; - //info!("STARTED"); self.wait_ready().await; - //info!("WRITE DONE"); bomb.defuse();