diff options
author | Arseniy-Movshev <dodoradio@outlook.com> | 2023-07-12 16:52:40 +0100 |
---|---|---|
committer | Arseniy-Movshev <dodoradio@outlook.com> | 2023-08-07 20:45:29 +0100 |
commit | eabcface011478b24192736fa8e2ea7b0861c5db (patch) | |
tree | d8622e25b6d3a4138951376737843f1f4b9b0f89 /daemon/logger.h | |
parent | cbe0e8b5f3d48d2e041a83ae0ab95c4c82fc277a (diff) |
Add a new logger for barometer
This just logs the raw sensor values, and doesn't do any compensation.
The same model as the heartrate sensor, where it's started and then we wait for a reasonable reading to come in.
Diffstat (limited to '')
-rw-r--r-- | daemon/logger.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/daemon/logger.h b/daemon/logger.h index 056645b..69affda 100644 --- a/daemon/logger.h +++ b/daemon/logger.h @@ -22,6 +22,7 @@ #include "sensorPlugins/stepCounter.h" #include "sensorPlugins/heartrateSensor.h" +#include "sensorPlugins/barometerSensor.h" class Logger : public QObject { @@ -42,6 +43,8 @@ private: HeartrateSensorPlugin *m_heartrateSensor; bool stepCounterEnabled = false; StepCounterPlugin *m_stepCounter; + bool barometerEnabled = false; + BarometerSensorPlugin *m_barometerSensor; bool daemonFresh; QSettings *settings; bool getDaemonFresh(); |