summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOtto Ryynänen <otto.ryynanen@qt.io>2017-02-02 10:02:45 +0200
committerTitta Heikkala <titta.heikkala@qt.io>2017-02-02 08:04:21 +0000
commitcb336e688db1242384c5ed95eeca247e85e799bf (patch)
tree4fb551995cb925a4ca60dabb2b355621a655ace3
parent71302b3895afc20ef37c62749105991b070b55b3 (diff)
Fixed bug in Accelometer data (was multiplied by 1000)
Change-Id: I4ffd59c33ec35f2d65bc59822f4080887633fa43 Reviewed-by: Titta Heikkala <titta.heikkala@qt.io>
-rw-r--r--tradeshow/iot-sensortag/bluetoothdevice.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tradeshow/iot-sensortag/bluetoothdevice.cpp b/tradeshow/iot-sensortag/bluetoothdevice.cpp
index a7b8bc4..459e879 100644
--- a/tradeshow/iot-sensortag/bluetoothdevice.cpp
+++ b/tradeshow/iot-sensortag/bluetoothdevice.cpp
@@ -83,7 +83,7 @@ Q_DECLARE_LOGGING_CATEGORY(boot2QtDemos)
// These modifiers come from the Texas Intruments SensorTag Bluetooth LE API specification
#define GYROSCOPE_API_READING_MULTIPLIER (500.0 / 65536.0)
-#define ACCELOMETER_API_READING_MULTIPLIER (8.0 / 32.768)
+#define ACCELOMETER_API_READING_MULTIPLIER (8.0 / 32768.0)
#define HUMIDITY_API_READING_MULTIPLIER (100.0 / 65536.0)
#define IR_TEMPERATURE_API_READING_DIVIDER 128.0
#define BAROMETER_API_READING_DIVIDER 100