This is an automated email from the ASF dual-hosted git repository.

andk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git


The following commit(s) were added to refs/heads/master by this push:
     new 1e6b13623 fs/littlefs: Fix flash area name
1e6b13623 is described below

commit 1e6b13623e98ca3dfe229324e6b40e3ba8b465fe
Author: Andrzej Kaczmarek <[email protected]>
AuthorDate: Wed Nov 26 11:51:58 2025 +0100

    fs/littlefs: Fix flash area name
    
    Flash area is defined in syscfg and should be used like that.
---
 fs/littlefs/src/littlefs_glue.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/littlefs/src/littlefs_glue.c b/fs/littlefs/src/littlefs_glue.c
index 3890889de..de8b4ad8f 100644
--- a/fs/littlefs/src/littlefs_glue.c
+++ b/fs/littlefs/src/littlefs_glue.c
@@ -776,7 +776,7 @@ littlefs_init(void)
     lfs_cfg->context = (struct flash_area *)fa;
 
     fsr_cnt = 1;
-    rc = flash_area_to_sector_ranges(FLASH_AREA_STORAGE, &fsr_cnt, &fsr);
+    rc = flash_area_to_sector_ranges(MYNEWT_VAL(LITTLEFS_FLASH_AREA), 
&fsr_cnt, &fsr);
     if (rc) {
         return FS_EHW;
     }

Reply via email to