diff options
author | Anton Lundin <glance@acc.umu.se> | 2016-11-07 23:08:59 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-11-07 21:08:28 -0800 |
commit | 2497ecf16d12be1bc7032994c40dd329644dc400 (patch) | |
tree | fffaa520da011a6de8c238236e1e1d7713339801 /core/configuredivecomputerthreads.cpp | |
parent | caf14865b4d7ea5278661a8171b69ada1a9d8ec9 (diff) | |
download | subsurface-2497ecf16d12be1bc7032994c40dd329644dc400.tar.gz |
configure ostc3: Correct typos
This fixes a copy-paste error made by me that caused
tempSensorOffset to first be set the wrong way and then overridden by
pressureSensorOffset.
Signed-off-by: Anton Lundin <glance@acc.umu.se>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core/configuredivecomputerthreads.cpp')
-rw-r--r-- | core/configuredivecomputerthreads.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/core/configuredivecomputerthreads.cpp b/core/configuredivecomputerthreads.cpp index 33791d737..679692e3d 100644 --- a/core/configuredivecomputerthreads.cpp +++ b/core/configuredivecomputerthreads.cpp @@ -911,7 +911,6 @@ static dc_status_t write_ostc3_settings(dc_device_t *device, DeviceDetails *m_de WRITE_SETTING(OSTC3_DYNAMIC_ASCEND_RATE, dynamicAscendRate); WRITE_SETTING(OSTC3_GRAPHICAL_SPEED_INDICATOR, graphicalSpeedIndicator); WRITE_SETTING(OSTC3_ALWAYS_SHOW_PPO2, alwaysShowppO2); - WRITE_SETTING(OSTC3_TEMP_SENSOR_OFFSET, tempSensorOffset); WRITE_SETTING(OSTC3_SAFETY_STOP_LENGTH, safetyStopLength); WRITE_SETTING(OSTC3_SAFETY_STOP_START_DEPTH, safetyStopStartDepth); WRITE_SETTING(OSTC3_SAFETY_STOP_END_DEPTH, safetyStopEndDepth); @@ -927,7 +926,7 @@ static dc_status_t write_ostc3_settings(dc_device_t *device, DeviceDetails *m_de EMIT_PROGRESS(); // OSTC3 stores the tempSensorOffset in two-complement - data[0] = (unsigned char)m_deviceDetails->pressureSensorOffset; + data[0] = (unsigned char)m_deviceDetails->tempSensorOffset; rc = hw_ostc3_device_config_write(device, OSTC3_TEMP_SENSOR_OFFSET, data, sizeof(data)); if (rc != DC_STATUS_SUCCESS) return rc; |