Signed-off-by: Anton Lundin <[email protected]>
---
 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

_______________________________________________
subsurface mailing list
[email protected]
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface

Reply via email to