rework card storage to use nvs

This commit was merged in pull request #60.
This commit is contained in:
2026-08-31 20:16:42 +02:00
parent b814c61f45
commit 0aa1370a2b
8 changed files with 320 additions and 222 deletions
+4 -1
View File
@@ -1,3 +1,5 @@
use esp_storage::FlashStorage;
pub struct MemoryRegion {
pub offset: u32,
pub size: usize,
@@ -26,7 +28,8 @@ pub const CARDSTORE_REGION: MemoryRegion = MemoryRegion::new(
MAX_FLASH - SETTINGS_REGION.end(),
);
pub type Nvs = esp_nvs::Nvs<FlashStorage<'static>>;
pub mod cardstore;
pub mod flash_store;
pub mod settings;
pub mod store;