Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add simple DataLogger and support for SD cards. #2125

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fixed linting issues
marvincarstensen committed Jul 6, 2024
commit dd3826a07a1cf83c6d2194e5a093b6d8283ccb0a
2 changes: 1 addition & 1 deletion include/DataLogger.h
Original file line number Diff line number Diff line change
@@ -21,7 +21,7 @@ class DataLoggerClass {
void writeFile(FS &fs, const String path, const char * message);
void appendFile(FS &fs, const String path, const char * message);

unsigned long getTime();
uint64_t getTime();
};

extern DataLoggerClass DataLogger;
4 changes: 2 additions & 2 deletions src/DataLogger.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include "DataLogger.h"
#include "Configuration.h"
#include "DataStore.h"
#include "Datastore.h"
#include "MessageOutput.h"
#include "SD.h"

@@ -89,7 +89,7 @@ void DataLoggerClass::appendFile(fs::FS &fs, const String path, const char * mes
file.close();
}

unsigned long DataLoggerClass::getTime() {
uint64_t DataLoggerClass::getTime() {
time_t now;
struct tm timeinfo;
if (!getLocalTime(&timeinfo)) {