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
This commit is contained in:
parent
bdd0e9e973
commit
4064c8257c
@ -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).
|
||||
|
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user