diff --git a/ui-app/src/lib.rs b/ui-app/src/lib.rs index e6b7677..3e59216 100644 --- a/ui-app/src/lib.rs +++ b/ui-app/src/lib.rs @@ -12,7 +12,6 @@ use embedded_graphics::{ text::Text, }; use heapless::String; -use hex::ToHex; #[derive(Copy, Clone, Debug, PartialEq, Format)] pub enum Key { @@ -228,20 +227,6 @@ impl App { // Extinguish the status LED out.status_led().set_color(Color::Black); - // Read the EEPROM, XOR with 0xFF, write it, then read it back - let mut eeprom_data = [0u8; 256]; - out.eeprom().read(&mut eeprom_data); - let hex: heapless::String<1024> = eeprom_data.encode_hex(); - defmt::info!("eeprom before {}", hex); - - eeprom_data.iter_mut().for_each(|x| *x ^= 0xff); - out.eeprom().write(&eeprom_data); - - eeprom_data.fill(0); - out.eeprom().read(&mut eeprom_data); - let hex: heapless::String<1024> = eeprom_data.encode_hex(); - defmt::info!("eeprom after {}", hex); - // Draw a test pattern to the screen let rect = out.screen().bounding_box(); diff --git a/ui-stm32/src/main.rs b/ui-stm32/src/main.rs index 314a7c1..d1d485e 100644 --- a/ui-stm32/src/main.rs +++ b/ui-stm32/src/main.rs @@ -99,11 +99,9 @@ async fn main(spawner: Spawner) { debug!("app start"); app.start(&mut board); - /* // Main event loop loop { let event = EVENT_QUEUE.receive().await; app.handle(event, &mut board); } - */ }