From 17b6cc612fe9e5ae0cf8f41f14366c60bc864132 Mon Sep 17 00:00:00 2001 From: 9names <60134748+9names@users.noreply.github.com> Date: Mon, 12 Feb 2024 22:36:57 +1100 Subject: [PATCH 1/2] Remove unimplemented erase_all implementation --- Cargo.toml | 4 +++- build.sh | 1 - src/main.rs | 5 ----- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 8352dcb..6a8e4e8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,7 +7,9 @@ version = "0.1.0" [dependencies] cortex-m = "0.7.0" -flash-algorithm = "0.4.0" +flash-algorithm = { version = "0.4.0", default-features = false, features = [ + "panic-handler", +] } # this lets you use `cargo fix`! [[bin]] diff --git a/build.sh b/build.sh index b0e5f67..345ccd4 100755 --- a/build.sh +++ b/build.sh @@ -30,5 +30,4 @@ cat < Result<(), ErrorCode> { - // todo - Err(ErrorCode::new(0x70d0).unwrap()) - } - fn erase_sector(&mut self, addr: u32) -> Result<(), ErrorCode> { (self.funcs.flash_range_erase)( addr - FlashDevice.dev_addr, From 4ea2ecffd6377d846213bfc5e93d4bfd6cf8b3d8 Mon Sep 17 00:00:00 2001 From: 9names <60134748+9names@users.noreply.github.com> Date: Sun, 18 Feb 2024 23:00:27 +1100 Subject: [PATCH 2/2] Rename rust-toolchain to rust-toolchain.toml --- rust-toolchain => rust-toolchain.toml | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename rust-toolchain => rust-toolchain.toml (100%) diff --git a/rust-toolchain b/rust-toolchain.toml similarity index 100% rename from rust-toolchain rename to rust-toolchain.toml