File manager
Diff: FileManager.cpp
- Revision:
- 15:b63a539c3754
- Parent:
- 14:4ba6147f067b
- Child:
- 16:c13dc589bb55
diff -r 4ba6147f067b -r b63a539c3754 FileManager.cpp --- a/FileManager.cpp Thu May 19 10:44:35 2016 +0000 +++ b/FileManager.cpp Sat May 21 14:35:10 2016 +0000 @@ -335,10 +335,13 @@ /* Write the timestamp unit to the file */ fprintf(fp, "-,-"); + + /* Write the unit of variables to the file */ for(int i = 0; i < m_amountVarList; i++) { - fprintf(fp, ",%s",m_varList[i].varName); + fprintf(fp, ",%s",m_varList[i].varUnit); } + /* Write new line as done */ fprintf(fp, "\n"); @@ -558,13 +561,4 @@ } #endif } -/** - * @brief Function to init File System - * @note Must be called during initialization - * @param - * @retval - */ -void FILEMANAGER_Init(void) -{ - SDFileSystem sd(A6, A5, A4, A0, DEVICE_NAME); // MOSI, MISO, SCK, CS -} +