diff options
author | Anton Lundin <glance@acc.umu.se> | 2014-10-18 00:33:35 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-10-18 15:19:58 -0700 |
commit | 9e958c80fa11bb250560fc9b4d4c65c623f47e60 (patch) | |
tree | ee4f6cd8a626336c7fab00f867ffd1d48d12474c /configuredivecomputerthreads.cpp | |
parent | 1180b5d2d37119b39f2dccdfdd2e58955d3ee160 (diff) | |
download | subsurface-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>
Diffstat (limited to 'configuredivecomputerthreads.cpp')
-rw-r--r-- | configuredivecomputerthreads.cpp | 4 |
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 |