9
0
Fork 0

clock_gettime() not settime() in FAT time logic

git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4094 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
patacongo 2011-11-17 03:59:54 +00:00
parent 84e04bab1e
commit 34382daaef
2 changed files with 3 additions and 1 deletions

View File

@ -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).

View File

@ -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 */