diff options
author | Robert C. Helling <helling@atdotde.de> | 2014-11-06 23:41:42 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-11-07 13:19:08 -0800 |
commit | 24c491053cd9ca2fcd1c380a23c928dce69e38d6 (patch) | |
tree | e1fb0e488c0b820ec2330384235632e5d1d0adca /profile.c | |
parent | 3fe310e5291f6ceab3f76a865dd9d2851ba0dedc (diff) | |
download | subsurface-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.c | 4 |
1 files changed, 0 insertions, 4 deletions
@@ -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]; |