From 0200aa69bdfe969c40c4487e8a3524a7c2c18807 Mon Sep 17 00:00:00 2001 From: topquark12 Date: Wed, 13 Jan 2021 17:16:29 +0800 Subject: [PATCH] flash store: clean up --- src/flash_store.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/flash_store.rs b/src/flash_store.rs index 27b55ba..92dcc91 100644 --- a/src/flash_store.rs +++ b/src/flash_store.rs @@ -11,6 +11,7 @@ pub const FLASH_SECTOR: u8 = 12; static mut BACKUP_SPACE: [u8; FLASH_SECTOR_SIZE] = [0; FLASH_SECTOR_SIZE]; extern "C" { + // These are from memory.x static _config_start: usize; static _flash_start: usize; } @@ -24,7 +25,7 @@ unsafe fn get_offset() -> usize { } impl StoreBackend for FlashBackend { - type Data = [u8]; + type Data = [u8]; fn data(&self) -> &Self::Data { unsafe {