modified version using external RTC for timestamps
Fork of FATFileSystem by
Diff: FATFileSystem.cpp
- Revision:
- 12:67250f8df758
- Parent:
- 11:3992ff7dc7dc
--- 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