From e8f1e8470aa64f7a5b34d49b5c8457123eb41527 Mon Sep 17 00:00:00 2001 From: Maurice Kalinowski Date: Fri, 3 Mar 2017 07:54:34 +0100 Subject: Initialize member variables Otherwise isDeviceReady() returns random results, causing the initialization of the whole connection to stop. Change-Id: I777c5eeaf342a30821f45afb076a826cda9896b9 Reviewed-by: Titta Heikkala --- tradeshow/iot-sensortag/bluetoothdevice.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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"); -- cgit v1.2.3