Skip to content

Commit

Permalink
NVS: fix align size
Browse files Browse the repository at this point in the history
when update for powerloss data write, data_wra should move NVS_ALIGN_SIZE

Signed-off-by: zhaoxingyu1 <[email protected]>
  • Loading branch information
zhaoxingyu12 authored and acassis committed Jul 18, 2024
1 parent 0ddcbe6 commit b706891
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mtd/mtd_config_fs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit b706891

Please sign in to comment.