mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
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>
This commit is contained in:
parent
1180b5d2d3
commit
9e958c80fa
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue