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,