[PATCH 01/13] Add missing compass gain read from the OSTC3

Anton Lundin glance at acc.umu.se
Fri Oct 17 15:33:35 PDT 2014


Signed-off-by: Anton Lundin <glance at acc.umu.se>
---
 configuredivecomputerthreads.cpp | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/configuredivecomputerthreads.cpp b/configuredivecomputerthreads.cpp
index eabf0dc..fe5430a 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
-- 
1.9.1



More information about the subsurface mailing list