mirror of
https://github.com/FreeRTOS/Lab-Project-FreeRTOS-FAT.git
synced 2025-10-20 13:03:56 +08:00
Added API allowing user to choose settings at runtime - replacement of PR#49 (#51)
* Adding in FF_SDDiskInitWithSettings optional initialization to support runtime initial mounting options. * FAT-#50: Fixing duplicate definition of st_atime, st_mtime, st_ctime for linux. * Fixing formatting with diff provided using uncrustify. --------- Co-authored-by: Paul Helter <paulheltera@gmail.com>
This commit is contained in:

committed by
GitHub

parent
08d0cff40d
commit
25129e5221
@@ -1137,9 +1137,9 @@ int ff_stat( const char * pcName,
|
||||
|
||||
#if ( ffconfigTIME_SUPPORT == 1 )
|
||||
{
|
||||
pxStatBuffer->st_atime = prvFileTime( &( xDirEntry.xAccessedTime ) );
|
||||
pxStatBuffer->st_mtime = prvFileTime( &( xDirEntry.xModifiedTime ) );
|
||||
pxStatBuffer->st_ctime = prvFileTime( &( xDirEntry.xCreateTime ) );
|
||||
pxStatBuffer->ff_atime = prvFileTime( &( xDirEntry.xAccessedTime ) );
|
||||
pxStatBuffer->ff_mtime = prvFileTime( &( xDirEntry.xModifiedTime ) );
|
||||
pxStatBuffer->ff_ctime = prvFileTime( &( xDirEntry.xCreateTime ) );
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
Reference in New Issue
Block a user