diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-11-17 03:59:54 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-11-17 03:59:54 +0000 |
commit | 5d2e0eabc3547237a88f2a1cdb7864736b37ac62 (patch) | |
tree | 610b77807e212d2140fc60877ea29fd530c620bd /nuttx | |
parent | 6e1ea39b8e41e8600506bc5325c25969de091ff3 (diff) | |
download | px4-nuttx-5d2e0eabc3547237a88f2a1cdb7864736b37ac62.tar.gz px4-nuttx-5d2e0eabc3547237a88f2a1cdb7864736b37ac62.tar.bz2 px4-nuttx-5d2e0eabc3547237a88f2a1cdb7864736b37ac62.zip |
clock_gettime() not settime() in FAT time logic
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4094 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx')
-rw-r--r-- | nuttx/ChangeLog | 2 | ||||
-rw-r--r-- | nuttx/fs/fat/fs_fat32util.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/nuttx/ChangeLog b/nuttx/ChangeLog index 1563caf3f..ef7cba211 100644 --- a/nuttx/ChangeLog +++ b/nuttx/ChangeLog @@ -2214,3 +2214,5 @@ from other directories. When formatted by Windows, it is not initialized at all. Some additional special handling is required to initialize the root directory entry to interoperate correctly with windows. + * fs/fat/fs_fat32util.c: In fat_systime2fattime(void) should be + clock_gettime() and not clock_gettime() (Thanks to David Sidrane). diff --git a/nuttx/fs/fat/fs_fat32util.c b/nuttx/fs/fat/fs_fat32util.c index 12c2394f0..bef9b45a7 100644 --- a/nuttx/fs/fat/fs_fat32util.c +++ b/nuttx/fs/fat/fs_fat32util.c @@ -418,7 +418,7 @@ uint32_t fat_systime2fattime(void) /* Get the current time in seconds and nanoseconds */ - ret = clock_settime(CLOCK_REALTIME, &ts); + ret = clock_gettime(CLOCK_REALTIME, &ts); if (ret == OK) { /* Break done the seconds in date and time units */ |