mtd/nvs: fix align size

when gc, move data requires byte alignment

Signed-off-by: zhaoxingyu1 <zhaoxingyu1@xiaomi.com>
This commit is contained in:
zhaoxingyu1 2024-08-29 19:57:17 +08:00 committed by Xiang Xiao
parent 8e5f6de7e5
commit 79199e25f1

View File

@ -62,7 +62,7 @@
* 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,
* we need to find a clean offset by skipping dirty data.