diff options
author | Anton Lundin <glance@acc.umu.se> | 2016-01-22 14:17:49 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-01-22 06:50:18 -0800 |
commit | 91a72f45d4e4f46061b1df514617472e1ff57ecb (patch) | |
tree | bcd6285730dc035a2a9f0b34493a32123c86b515 /desktop-widgets/configuredivecomputerdialog.cpp | |
parent | 128fc39274791525113bee5ac7882352beb8cb70 (diff) | |
download | subsurface-91a72f45d4e4f46061b1df514617472e1ff57ecb.tar.gz |
configure OSTC3: Add temperature sensor offset
Signed-off-by: Anton Lundin <glance@acc.umu.se>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'desktop-widgets/configuredivecomputerdialog.cpp')
-rw-r--r-- | desktop-widgets/configuredivecomputerdialog.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/desktop-widgets/configuredivecomputerdialog.cpp b/desktop-widgets/configuredivecomputerdialog.cpp index ddb9450de..3fbb4327c 100644 --- a/desktop-widgets/configuredivecomputerdialog.cpp +++ b/desktop-widgets/configuredivecomputerdialog.cpp @@ -470,6 +470,7 @@ void ConfigureDiveComputerDialog::populateDeviceDetailsOSTC3() deviceDetails->dynamicAscendRate = ui.dynamicAscendRate->isChecked(); deviceDetails->graphicalSpeedIndicator = ui.graphicalSpeedIndicator->isChecked(); deviceDetails->alwaysShowppO2 = ui.alwaysShowppO2->isChecked(); + deviceDetails->tempSensorOffset = ui.tempSensorOffsetDoubleSpinBox->value() * 10; //set gas values gas gas1; @@ -845,6 +846,7 @@ void ConfigureDiveComputerDialog::reloadValuesOSTC3() ui.dynamicAscendRate->setChecked(deviceDetails->dynamicAscendRate); ui.graphicalSpeedIndicator->setChecked(deviceDetails->graphicalSpeedIndicator); ui.alwaysShowppO2->setChecked(deviceDetails->alwaysShowppO2); + ui.tempSensorOffsetDoubleSpinBox->setValue((double)deviceDetails->tempSensorOffset / 10.0); //load gas 1 values ui.ostc3GasTable->setItem(0, 1, new QTableWidgetItem(QString::number(deviceDetails->gas1.oxygen))); |