summaryrefslogtreecommitdiff
path: root/daemon/logger.h
diff options
context:
space:
mode:
authorArseniy-Movshev <dodoradio@outlook.com>2023-05-31 18:20:42 +0100
committerArseniy-Movshev <dodoradio@outlook.com>2023-06-01 13:32:13 +0100
commitc1e9b5f8a2d287865db3a4d5d056ecf736e05b24 (patch)
treeb76929fcd3df118aafb006b529e4a46093a48323 /daemon/logger.h
parent7a8565498f9894a6d8fbb8cd4462048a4c603418 (diff)
Add a check for whether the daemon is starting the first time this boot
Diffstat (limited to '')
-rw-r--r--daemon/logger.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/daemon/logger.h b/daemon/logger.h
index 515adb2..2eff33f 100644
--- a/daemon/logger.h
+++ b/daemon/logger.h
@@ -42,7 +42,9 @@ private:
HeartrateSensorPlugin *m_heartrateSensor;
bool stepCounterEnabled = false;
StepCounterPlugin *m_stepCounter;
+ bool daemonFresh;
QSettings *settings;
+ bool getDaemonFresh();
};
void fileAddRecord(QString sensorPrefix, QString logdata, QDateTime recordTime = QDateTime::currentDateTime()); //adds a record to today's log file for the given sensor