modified version using external RTC for timestamps

Fork of FATFileSystem by mbed official

Files at this revision

API Documentation at this revision

Comitter:
bwang
Date:
Mon Jan 29 09:41:35 2018 +0000
Parent:
11:3992ff7dc7dc
Commit message:
get_fattime() uses external BNO55 object to get time

Changed in this revision

FATFileSystem.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 3992ff7dc7dc -r 67250f8df758 FATFileSystem.cpp
--- a/FATFileSystem.cpp	Mon Jan 29 09:40:05 2018 +0000
+++ b/FATFileSystem.cpp	Mon Jan 29 09:41:35 2018 +0000
@@ -33,7 +33,7 @@
 
 DWORD get_fattime(void) {
     time_t rawtime;
-    //time(&rawtime);
+
     rawtime = rtc->now().unixtime();
     struct tm *ptm = localtime(&rawtime);
     return (DWORD)(ptm->tm_year - 80) << 25