From 24c491053cd9ca2fcd1c380a23c928dce69e38d6 Mon Sep 17 00:00:00 2001 From: "Robert C. Helling" Date: Thu, 6 Nov 2014 23:41:42 +0100 Subject: [PATCH] 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 Signed-off-by: Dirk Hohndel --- profile.c | 4 ---- 1 file changed, 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];