This is an automated email from the ASF dual-hosted git repository.
acassis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new b706891fc7 NVS: fix align size
b706891fc7 is described below
commit b706891fc7b99522f0cf209be0cbe6f124143db9
Author: zhaoxingyu1 <[email protected]>
AuthorDate: Mon May 20 23:29:24 2024 +0800
NVS: fix align size
when update for powerloss data write, data_wra should move NVS_ALIGN_SIZE
Signed-off-by: zhaoxingyu1 <[email protected]>
---
drivers/mtd/mtd_config_fs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/mtd/mtd_config_fs.c b/drivers/mtd/mtd_config_fs.c
index f1f8079f5f..da361790b0 100644
--- a/drivers/mtd/mtd_config_fs.c
+++ b/drivers/mtd/mtd_config_fs.c
@@ -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.