diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-07-16 15:52:15 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-07-16 15:52:15 +0000 |
commit | ab14fe398b2693da319e4bd47ed1adda704e8175 (patch) | |
tree | e6ebbb945196964ccda40619991bc966a68b0000 /nuttx/fs/fat | |
parent | 77328a1539b34e3b472606673bc726241b0cac20 (diff) | |
download | px4-nuttx-ab14fe398b2693da319e4bd47ed1adda704e8175.tar.gz px4-nuttx-ab14fe398b2693da319e4bd47ed1adda704e8175.tar.bz2 px4-nuttx-ab14fe398b2693da319e4bd47ed1adda704e8175.zip |
Make NX and NXTEXT built-ins; extend stm3210e-eval/nsh2 config to run the NX example from the NX command line
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3791 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/fs/fat')
-rw-r--r-- | nuttx/fs/fat/fs_fat32dirent.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nuttx/fs/fat/fs_fat32dirent.c b/nuttx/fs/fat/fs_fat32dirent.c index 91eeb26b6..67366cab4 100644 --- a/nuttx/fs/fat/fs_fat32dirent.c +++ b/nuttx/fs/fat/fs_fat32dirent.c @@ -2258,7 +2258,7 @@ int fat_allocatedirentry(struct fat_mountpt_s *fs, struct fat_dirinfo_s *dirinfo fs->fs_currentsector = fat_cluster2sector(fs, cluster); memset(fs->fs_buffer, 0, fs->fs_hwsectorsize); - sector = sector; + sector = fs->fs_currentsector; for (i = fs->fs_fatsecperclus; i; i--) { ret = fat_hwwrite(fs, fs->fs_buffer, sector, 1); |