diff options
author | Anton Lundin <glance@acc.umu.se> | 2014-10-16 01:13:55 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-10-16 11:09:38 +0200 |
commit | d025d5bbb6d8d912dfc43a9da1ce6b435eec1be0 (patch) | |
tree | 523301d7d701a26f83e559620155d97a86a78f9d /configuredivecomputerthreads.cpp | |
parent | 882986dfdf7da5861d0037f7bc54d75c0356ac40 (diff) | |
download | subsurface-d025d5bbb6d8d912dfc43a9da1ce6b435eec1be0.tar.gz |
Set the diluent values from the right buffer
The OSTC3 settings code read the data from the computer into spData, but
set the data into the devicedetails object from dilData.
Signed-off-by: Anton Lundin <glance@acc.umu.se>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'configuredivecomputerthreads.cpp')
-rw-r--r-- | configuredivecomputerthreads.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/configuredivecomputerthreads.cpp b/configuredivecomputerthreads.cpp index c0857d3f7..495db4bf5 100644 --- a/configuredivecomputerthreads.cpp +++ b/configuredivecomputerthreads.cpp @@ -344,36 +344,36 @@ void ReadSettingsThread::run() rc = hw_ostc3_device_config_read(m_data->device, OSTC3_SP1, spData, sizeof(spData)); if (rc == DC_STATUS_SUCCESS) { //Data read successful - sp1.sp = dilData[0]; - sp1.depth = dilData[1]; + sp1.sp = spData[0]; + sp1.depth = spData[1]; } //Sp 2 rc = hw_ostc3_device_config_read(m_data->device, OSTC3_SP2, spData, sizeof(spData)); if (rc == DC_STATUS_SUCCESS) { //Data read successful - sp2.sp = dilData[0]; - sp2.depth = dilData[1]; + sp2.sp = spData[0]; + sp2.depth = spData[1]; } //Sp 3 rc = hw_ostc3_device_config_read(m_data->device, OSTC3_SP3, spData, sizeof(spData)); if (rc == DC_STATUS_SUCCESS) { //Data read successful - sp3.sp = dilData[0]; - sp3.depth = dilData[1]; + sp3.sp = spData[0]; + sp3.depth = spData[1]; } //Sp 4 rc = hw_ostc3_device_config_read(m_data->device, OSTC3_SP4, spData, sizeof(spData)); if (rc == DC_STATUS_SUCCESS) { //Data read successful - sp4.sp = dilData[0]; - sp4.depth = dilData[1]; + sp4.sp = spData[0]; + sp4.depth = spData[1]; } //Sp 5 rc = hw_ostc3_device_config_read(m_data->device, OSTC3_SP5, spData, sizeof(spData)); if (rc == DC_STATUS_SUCCESS) { //Data read successful - sp5.sp = dilData[0]; - sp5.depth = dilData[1]; + sp5.sp = spData[0]; + sp5.depth = spData[1]; } m_deviceDetails->setSp1(sp1); |