summaryrefslogtreecommitdiff
path: root/components/dfs
diff options
context:
space:
mode:
authorMeco Man <[email protected]>2021-02-18 15:43:22 +0800
committerMeco Man <[email protected]>2021-02-18 15:43:22 +0800
commite90a0ee03c78eee75311f432aa7570dc3e53663c (patch)
treec1f7d2db099264ad9b0e4ca52a9354f343c35036 /components/dfs
parent8ea33c2101cdc8d8d8a5f94479acca310fbbfb75 (diff)
[fatfs][rtc][bug] 修复FATFS底层接口get_fattime获取时间条件的bug
Diffstat (limited to 'components/dfs')
-rw-r--r--components/dfs/filesystems/elmfat/dfs_elm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/dfs/filesystems/elmfat/dfs_elm.c b/components/dfs/filesystems/elmfat/dfs_elm.c
index d8c38e96ae..80e99a5e94 100644
--- a/components/dfs/filesystems/elmfat/dfs_elm.c
+++ b/components/dfs/filesystems/elmfat/dfs_elm.c
@@ -945,7 +945,7 @@ DWORD get_fattime(void)
{
DWORD fat_time = 0;
-#ifdef RT_USING_LIBC
+#ifdef RT_USING_RTC
time_t now;
struct tm *p_tm;
struct tm tm_now;