mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 13:10:19 +00:00
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>
This commit is contained in:
parent
3fe310e529
commit
24c491053c
1 changed files with 0 additions and 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];
|
||||
|
|
Loading…
Reference in a new issue