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:
Anton Lundin 2014-10-18 00:33:35 +02:00 committed by Dirk Hohndel
parent 1180b5d2d3
commit 9e958c80fa

View file

@ -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