diff options
author | Maurice Kalinowski <maurice.kalinowski@qt.io> | 2017-03-03 07:54:34 +0100 |
---|---|---|
committer | Titta Heikkala <titta.heikkala@qt.io> | 2017-03-03 07:05:15 +0000 |
commit | e8f1e8470aa64f7a5b34d49b5c8457123eb41527 (patch) | |
tree | ee53b7fae3c03ff74f237578849a45cec8c38b39 /tradeshow | |
parent | 8f7bb40c889ac1f74cc0e11660011cf1ee2d7b15 (diff) |
Initialize member variables
Otherwise isDeviceReady() returns random results, causing the
initialization of the whole connection to stop.
Change-Id: I777c5eeaf342a30821f45afb076a826cda9896b9
Reviewed-by: Titta Heikkala <titta.heikkala@qt.io>
Diffstat (limited to 'tradeshow')
-rw-r--r-- | tradeshow/iot-sensortag/bluetoothdevice.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tradeshow/iot-sensortag/bluetoothdevice.cpp b/tradeshow/iot-sensortag/bluetoothdevice.cpp index f2d3881..90681ed 100644 --- a/tradeshow/iot-sensortag/bluetoothdevice.cpp +++ b/tradeshow/iot-sensortag/bluetoothdevice.cpp @@ -81,6 +81,11 @@ BluetoothDevice::BluetoothDevice() , m_lightService(0) , m_motionService(0) , m_deviceState(DeviceState::Disconnected) + , m_temperatureMeasurementStarted(false) + , m_barometerMeasurementStarted(false) + , m_humidityMeasurementStarted(false) + , m_lightIntensityMeasurementStarted(false) + , m_motionMeasurementStarted(false) { m_lastMilliseconds = QDateTime::currentMSecsSinceEpoch(); statusUpdated("Device created"); |