mirror of
https://github.com/CovidBraceletPrj/CovidBracelet.git
synced 2025-01-08 04:14:25 +01:00
Increase NVS to 192 sectors, 16.384 byte each
This commit is contained in:
parent
9ddbe15170
commit
b8eb13f634
@ -24,7 +24,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Maybe use this as param for init function
|
// Maybe use this as param for init function
|
||||||
#define SEC_COUNT 8U
|
#define SEC_COUNT 192U
|
||||||
|
|
||||||
#define STORED_CONTACTS_INFO_ID 0
|
#define STORED_CONTACTS_INFO_ID 0
|
||||||
#define CONTACTS_OFFSET 1
|
#define CONTACTS_OFFSET 1
|
||||||
@ -87,7 +87,7 @@ int init_contact_storage(void) {
|
|||||||
// Error during retrieval of page information
|
// Error during retrieval of page information
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
fs.sector_size = info.size;
|
fs.sector_size = info.size * 4;
|
||||||
fs.sector_count = SEC_COUNT;
|
fs.sector_count = SEC_COUNT;
|
||||||
|
|
||||||
rc = nvs_init(&fs, FLASH_DEVICE);
|
rc = nvs_init(&fs, FLASH_DEVICE);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user