瀏覽代碼

Merge pull request #4349 from mysterywolf/fatfs

[fatfs][rtc][bug] 修复FATFS底层接口get_fattime获取时间条件的bug
Bernard Xiong 4 年之前
父節點
當前提交
aa0adeccad
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      components/dfs/filesystems/elmfat/dfs_elm.c

+ 1 - 1
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_LIBC_USING_TIME
     time_t now;
     struct tm *p_tm;
     struct tm tm_now;