From be61c9004e66bb58ead920cb152cfab80b31f01f Mon Sep 17 00:00:00 2001 From: Titta Heikkala Date: Wed, 15 Feb 2017 10:05:21 +0200 Subject: iot-sensortag: Fix compile error isDeviceReady() function can't be const because it changes the state. Change-Id: I05fe26aad80b7aaede42bf26c7aba6b9c9c299f3 Reviewed-by: Oliver Wolff --- tradeshow/iot-sensortag/bluetoothdevice.cpp | 2 +- tradeshow/iot-sensortag/bluetoothdevice.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'tradeshow') diff --git a/tradeshow/iot-sensortag/bluetoothdevice.cpp b/tradeshow/iot-sensortag/bluetoothdevice.cpp index c37a5ea..7be53d7 100644 --- a/tradeshow/iot-sensortag/bluetoothdevice.cpp +++ b/tradeshow/iot-sensortag/bluetoothdevice.cpp @@ -470,7 +470,7 @@ double BluetoothDevice::convertIrTemperatureAPIReadingToCelsius(quint16 rawReadi return t * SCALE_LSB; } -void BluetoothDevice::isDeviceReady() const +void BluetoothDevice::isDeviceReady() { if (m_temperatureMeasurementStarted && m_humidityMeasurementStarted && diff --git a/tradeshow/iot-sensortag/bluetoothdevice.h b/tradeshow/iot-sensortag/bluetoothdevice.h index 94a12c3..0c9ac1d 100644 --- a/tradeshow/iot-sensortag/bluetoothdevice.h +++ b/tradeshow/iot-sensortag/bluetoothdevice.h @@ -169,7 +169,7 @@ private: void lightIntensityReceived(const QByteArray &value); void motionReceived(const QByteArray &value); double convertIrTemperatureAPIReadingToCelsius(quint16 rawReading); - void isDeviceReady() const; + void isDeviceReady(); QBluetoothDeviceDiscoveryAgent *discoveryAgent; QString m_previousAddress; -- cgit v1.2.3