diff options
author | Titta Heikkala <titta.heikkala@qt.io> | 2017-02-15 10:05:21 +0200 |
---|---|---|
committer | Oliver Wolff <oliver.wolff@qt.io> | 2017-02-15 08:20:53 +0000 |
commit | be61c9004e66bb58ead920cb152cfab80b31f01f (patch) | |
tree | 938d464f15f2a6426b08f97ad73adb769815fd80 /tradeshow | |
parent | 4b5beeedda5e129018c167dd0a5cd1f17fc5c246 (diff) |
iot-sensortag: Fix compile error
isDeviceReady() function can't be const because it changes the state.
Change-Id: I05fe26aad80b7aaede42bf26c7aba6b9c9c299f3
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
Diffstat (limited to 'tradeshow')
-rw-r--r-- | tradeshow/iot-sensortag/bluetoothdevice.cpp | 2 | ||||
-rw-r--r-- | tradeshow/iot-sensortag/bluetoothdevice.h | 2 |
2 files changed, 2 insertions, 2 deletions
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; |