summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArseniy-Movshev <dodoradio@outlook.com>2023-06-05 18:19:49 +0100
committerArseniy-Movshev <dodoradio@outlook.com>2023-06-05 18:19:49 +0100
commit6e92b73b935fced594ffe5dc7545639225c99b06 (patch)
treebd4e23383b0fb94b40d156fb69babff4fa0802dc
parent87d887a438c3d689854b8ebea44a675929cc60a0 (diff)
Add a log message to debug failing step counter resets
-rw-r--r--daemon/sensorPlugins/stepCounter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/daemon/sensorPlugins/stepCounter.cpp b/daemon/sensorPlugins/stepCounter.cpp
index 1ab09eb..a01c0b9 100644
--- a/daemon/sensorPlugins/stepCounter.cpp
+++ b/daemon/sensorPlugins/stepCounter.cpp
@@ -68,7 +68,7 @@ void StepCounterPlugin::triggerRecording()
int steps = stepcounterSensor->reading()->steps();
fileAddRecord(sensorPathPrefix, QString::number(steps), QDateTime(QDate::currentDate().addDays(-1), QTime(23, 59, 59))); // this writes the current step count to the last second of the previous day
stepcounterSensor->reading()->setSteps(0); // and then we reset the step counter
- qDebug() << "date change detected; recorded " << steps << " to previous day and reset step counter hw";
+ qDebug() << "date change detected; recorded " << steps << " to previous day and reset step counter hw. Step counter now holds " << stepcounterSensor->reading()->steps() << " steps";
} else {
int steps = stepcounterSensor->reading()->steps();
qDebug() << QDateTime::currentDateTime().toString("hh:mm:ss") << " : " << steps << stepcounterSensor->isActive();