aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Anton Lundin <glance@acc.umu.se>2014-10-18 00:33:35 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-10-18 15:19:58 -0700
commit9e958c80fa11bb250560fc9b4d4c65c623f47e60 (patch)
treeee4f6cd8a626336c7fab00f867ffd1d48d12474c
parent1180b5d2d37119b39f2dccdfdd2e58955d3ee160 (diff)
downloadsubsurface-9e958c80fa11bb250560fc9b4d4c65c623f47e60.tar.gz
Add missing compass gain read from the OSTC3
Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--configuredivecomputerthreads.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/configuredivecomputerthreads.cpp b/configuredivecomputerthreads.cpp
index eabf0dcbf..fe5430a23 100644
--- a/configuredivecomputerthreads.cpp
+++ b/configuredivecomputerthreads.cpp
@@ -428,6 +428,10 @@ void ReadSettingsThread::run()
rc = hw_ostc3_device_config_read(m_data->device, OSTC3_DATE_FORMAT, uData, sizeof(uData));
if (rc == DC_STATUS_SUCCESS)
m_deviceDetails->setDateFormat(uData[0]);
+ //Compass gain
+ rc = hw_ostc3_device_config_read(m_data->device, OSTC3_COMPASS_GAIN, data, sizeof(data));
+ if (rc == DC_STATUS_SUCCESS)
+ m_deviceDetails->setCompassGain(uData[0]);
//read firmware settings