diff options
Diffstat (limited to '')
-rw-r--r-- | daemon/logger.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/daemon/logger.cpp b/daemon/logger.cpp index 984ae33..4488a03 100644 --- a/daemon/logger.cpp +++ b/daemon/logger.cpp @@ -78,6 +78,16 @@ void Logger::displayOn(QString displayState) { } } +void Logger::triggerRecording() { + if (heartrateSensorEnabled) { + m_heartrateSensor->triggerRecording(); + } + + if (stepCounterEnabled) { + m_stepCounter->triggerRecording(); + } +} + void fileAddRecord(QString sensorPrefix, QString logdata, QDateTime recordTime) { //adds a record to today's log file for the given sensor qDebug() << fileNameForDate(recordTime.date(), sensorPrefix); QFile file(fileNameForDate(recordTime.date(), sensorPrefix)); |