diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-09-06 14:46:08 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-09-06 14:46:08 +0000 |
commit | d511d207874d1918ee2436308aeadd57dfd48e4b (patch) | |
tree | f495a1f74d642f018d8bd4260ac7e62794f89348 /nuttx/fs/fat/fs_fat32util.c | |
parent | f12b71e69f745d2dde28a83c8a0c1ad3d81062d6 (diff) | |
download | px4-nuttx-d511d207874d1918ee2436308aeadd57dfd48e4b.tar.gz px4-nuttx-d511d207874d1918ee2436308aeadd57dfd48e4b.tar.bz2 px4-nuttx-d511d207874d1918ee2436308aeadd57dfd48e4b.zip |
Important FAT fix. Bad test would cause many un-necessary writes to FLASH.
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5102 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/fs/fat/fs_fat32util.c')
-rw-r--r-- | nuttx/fs/fat/fs_fat32util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nuttx/fs/fat/fs_fat32util.c b/nuttx/fs/fat/fs_fat32util.c index 397467c41..b88046d79 100644 --- a/nuttx/fs/fat/fs_fat32util.c +++ b/nuttx/fs/fat/fs_fat32util.c @@ -1563,7 +1563,7 @@ int fat_ffcacheflush(struct fat_mountpt_s *fs, struct fat_file_s *ff) */ if (ff->ff_cachesector && - ff->ff_bflags && (FFBUFF_DIRTY|FFBUFF_VALID) == (FFBUFF_DIRTY|FFBUFF_VALID)) + (ff->ff_bflags & (FFBUFF_DIRTY|FFBUFF_VALID)) == (FFBUFF_DIRTY|FFBUFF_VALID)) { /* Write the dirty sector */ |