Increase NVS to 192 sectors, 16.384 byte each

This commit is contained in:
H1ghBre4k3r 2021-03-31 16:01:39 +02:00 committed by Patrick Rathje
parent 9ddbe15170
commit b8eb13f634
1 changed files with 2 additions and 2 deletions

View File

@ -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);