From e228f65119bef5ba2e0a26c0f9c53d5c3f131463 Mon Sep 17 00:00:00 2001 From: Arseniy-Movshev Date: Sun, 28 May 2023 14:08:57 +0100 Subject: Allow sensorlogd to set up its directory structure This code sets up all the paths used by sensorlogd before it is started --- daemon/sensorPlugins/heartrateSensor.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'daemon/sensorPlugins/heartrateSensor.cpp') diff --git a/daemon/sensorPlugins/heartrateSensor.cpp b/daemon/sensorPlugins/heartrateSensor.cpp index cf3bfb4..8b329b9 100644 --- a/daemon/sensorPlugins/heartrateSensor.cpp +++ b/daemon/sensorPlugins/heartrateSensor.cpp @@ -26,6 +26,8 @@ HeartrateSensorPlugin::HeartrateSensorPlugin(QObject *parent, int initInterval) hrmSensor = new QHrmSensor(this); connect(hrmSensor,SIGNAL(readingChanged()),this,SLOT(finishRecording())); + setupFilePath(sensorPathPrefix); + qDebug() << "heartrate sensor is enabled. interval is (ms) " << interval; recordIntervalTimer = new QTimer(this); connect(recordIntervalTimer,SIGNAL(timeout()),this,SLOT(triggerRecording())); -- cgit v1.2.3-70-g09d2