From 9e958c80fa11bb250560fc9b4d4c65c623f47e60 Mon Sep 17 00:00:00 2001 From: Anton Lundin Date: Sat, 18 Oct 2014 00:33:35 +0200 Subject: Add missing compass gain read from the OSTC3 Signed-off-by: Anton Lundin Signed-off-by: Dirk Hohndel --- configuredivecomputerthreads.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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 -- cgit v1.2.3-70-g09d2