From 8aabcf1eb258aedc9c268d6c1de191747f4f4400 Mon Sep 17 00:00:00 2001 From: Lorn Potter Date: Sat, 12 Oct 2013 17:19:44 +1000 Subject: make sensorfw plugin handle the sensord restarting. This way, clients that are connected will continue to receive updates after the sensord has restarted, without the need to restart the sensor. Task-number: QTBUG-34050 Change-Id: I4a8fbca189764cf23a1453feae5c1fd9ed6911e7 Reviewed-by: Thomas McGuire --- src/plugins/sensors/sensorfw/sensorfwrotationsensor.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/plugins/sensors/sensorfw/sensorfwrotationsensor.h') diff --git a/src/plugins/sensors/sensorfw/sensorfwrotationsensor.h b/src/plugins/sensors/sensorfw/sensorfwrotationsensor.h index d6b056b4..1f237cf4 100644 --- a/src/plugins/sensors/sensorfw/sensorfwrotationsensor.h +++ b/src/plugins/sensors/sensorfw/sensorfwrotationsensor.h @@ -44,7 +44,7 @@ #define SENSORFWROTATION_H #include "sensorfwsensorbase.h" -#include +#include #include #include @@ -61,10 +61,10 @@ public: protected: virtual bool doConnect(); virtual QString sensorName() const; - + virtual void init() Q_DECL_OVERRIDE; private: QRotationReading m_reading; - static bool m_initDone; + bool m_initDone; private slots: void slotDataAvailable(const XYZ& data); -- cgit v1.2.3