summaryrefslogtreecommitdiff
path: root/daemon/sensorPlugins
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--daemon/sensorPlugins/stepCounter.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/daemon/sensorPlugins/stepCounter.cpp b/daemon/sensorPlugins/stepCounter.cpp
index 3df23c7..7dd8627 100644
--- a/daemon/sensorPlugins/stepCounter.cpp
+++ b/daemon/sensorPlugins/stepCounter.cpp
@@ -41,6 +41,7 @@ StepCounterPlugin::StepCounterPlugin(QObject *parent, int initInterval) :
if (dayFileExists(sensorPathPrefix)) {
QStringList lastLineData = fileGetPrevRecord(sensorPathPrefix);
+ lastRecordTime = QDateTime::currentDateTime();
stepcounterSensor->reading()->setSteps(lastLineData[1].toInt() + stepcounterSensor->reading()->steps()); // we add the last recorded value from today to the current value. This 'recovers' the steps from between reboots. I'm not sure how this will work on catfish or medaka.
}
}