NVS: fix align size

when update for powerloss data write, data_wra should move NVS_ALIGN_SIZE

Signed-off-by: zhaoxingyu1 <zhaoxingyu1@xiaomi.com>
This commit is contained in:
zhaoxingyu1 2024-05-20 23:29:24 +08:00 committed by Alan Carvalho de Assis
parent 0ddcbe62ec
commit b706891fc7

View File

@ -73,7 +73,7 @@
* starting.
*/
#define NVS_CORRUPT_DATA_SKIP_STEP 1
#define NVS_CORRUPT_DATA_SKIP_STEP NVS_ALIGN_SIZE
/* Gc done or close ate has the id of 0xffffffff.
* We can tell if the ate is special by looking at its id.