File manager
Diff: FileManager.cpp
- Revision:
- 34:097b1f6828b7
- Parent:
- 33:dd67a980e9d8
- Child:
- 35:b91169442c4a
diff -r dd67a980e9d8 -r 097b1f6828b7 FileManager.cpp --- a/FileManager.cpp Wed Sep 14 02:07:06 2016 +0000 +++ b/FileManager.cpp Wed Sep 14 08:32:24 2016 +0000 @@ -459,17 +459,15 @@ /* Indicate LED Status (ON)*/ FILEMANAGER_SetLedStatus(true); /* get Timestamp */ - time_t seconds = time(NULL); - + time_t seconds = INTERNALRTC_GetEpoch(); + /* Write some message, which is TBD */ fprintf(fp, "\nStart Mini-RMS System with At UTC Time %s , Gps Interval = %f second, RMS Interval = %f second, Variable = %d variable(s) ",ctime(&seconds),gps_interval,rms_interval,m_amountVarList); if (isResetCausedByWdg) { fprintf(fp, " **** Restart by Watchdog"); } - fclose(fp); // ensure you close the file after writing - #if defined(__MICROLIB) && defined(__ARMCC_VERSION) // with microlib and ARM compiler free(fp); #endif