Skip to content

Commit

Permalink
Fix build on ESP8266
Browse files Browse the repository at this point in the history
Fixes #2

CL: vfs-fs-lfs: Fix build on ESP8266
  • Loading branch information
rojer committed Aug 7, 2019
1 parent 5ce8db4 commit ad140c0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion littlefs/lfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -1500,7 +1500,7 @@ static int lfs_dir_compact(lfs_t *lfs,
end = begin;
}
}
#if LFS_MIGRATE
#ifdef LFS_MIGRATE
} else if (lfs_pair_cmp(dir->pair, lfs->root) == 0 && lfs->lfs1) {
// we can't relocate our root during migrations, as this would
// cause the superblock to get updated, which would clobber v1
Expand Down
5 changes: 5 additions & 0 deletions mos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ conds:
cdefs:
MGOS_LFS1_COMPAT: 1

# ESP8266 toolchain uses ancient GCC 4.8.5 which is too dumb to see through typedefs.
- when: mos.platform == "esp8266"
apply:
cflags: ["-Wno-format"]

tags:
- c
- fs
Expand Down

0 comments on commit ad140c0

Please sign in to comment.