From b8eb13f634f512516e16fa93d7d87308958fa741 Mon Sep 17 00:00:00 2001 From: H1ghBre4k3r Date: Wed, 31 Mar 2021 16:01:39 +0200 Subject: [PATCH] Increase NVS to 192 sectors, 16.384 byte each --- src/storage.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/storage.c b/src/storage.c index 642241d..d564432 100644 --- a/src/storage.c +++ b/src/storage.c @@ -24,7 +24,7 @@ #endif // Maybe use this as param for init function -#define SEC_COUNT 8U +#define SEC_COUNT 192U #define STORED_CONTACTS_INFO_ID 0 #define CONTACTS_OFFSET 1 @@ -87,7 +87,7 @@ int init_contact_storage(void) { // Error during retrieval of page information return rc; } - fs.sector_size = info.size; + fs.sector_size = info.size * 4; fs.sector_count = SEC_COUNT; rc = nvs_init(&fs, FLASH_DEVICE);