mtd/nvs: fix align size
when gc, move data requires byte alignment Signed-off-by: zhaoxingyu1 <zhaoxingyu1@xiaomi.com>
This commit is contained in:
parent
8e5f6de7e5
commit
79199e25f1
@ -62,7 +62,7 @@
|
|||||||
* so we make a buffer to do compare or move.
|
* so we make a buffer to do compare or move.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define NVS_BUFFER_SIZE 32
|
#define NVS_BUFFER_SIZE MAX(NVS_ALIGN_UP(32), NVS_ALIGN_SIZE)
|
||||||
|
|
||||||
/* If data is written after last ate, and power loss happens,
|
/* If data is written after last ate, and power loss happens,
|
||||||
* we need to find a clean offset by skipping dirty data.
|
* we need to find a clean offset by skipping dirty data.
|
||||||
|
Loading…
Reference in New Issue
Block a user