summaryrefslogtreecommitdiffstats
path: root/profile.c
diff options
context:
space:
mode:
authorGravatar Robert C. Helling <helling@atdotde.de>2014-11-06 23:41:42 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-11-07 13:19:08 -0800
commit24c491053cd9ca2fcd1c380a23c928dce69e38d6 (patch)
treee1fb0e488c0b820ec2330384235632e5d1d0adca /profile.c
parent3fe310e5291f6ceab3f76a865dd9d2851ba0dedc (diff)
downloadsubsurface-24c491053cd9ca2fcd1c380a23c928dce69e38d6.tar.gz
Don't overwrite zero setpoints
As we agreed, in memory we don't zero repeated setpoints and thus zero setpoints don't have to be overwritten by the last setpoint value. This corrects the deco ceiling with CCR dives that bailout to OC. Signed-off-by: Robert C. Helling <helling@atdotde.de> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'profile.c')
-rw-r--r--profile.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/profile.c b/profile.c
index 7c4a8856d..c74c7c0c6 100644
--- a/profile.c
+++ b/profile.c
@@ -952,10 +952,6 @@ void fill_o2_values(struct divecomputer *dc, struct plot_info *pi, struct dive *
for (j = 0; j < dc->no_o2sensors; j++)
last_sensor[j] = pi->entry->o2sensor[j];
} else { // Now re-insert the missing oxygen pressure values
- if (entry->o2setpoint)
- last_setpoint = entry->o2setpoint;
- else
- entry->o2setpoint = last_setpoint;
for (j = 0; j < dc->no_o2sensors; j++)
if (entry->o2sensor[j])
last_sensor[j] = entry->o2sensor[j];