summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Anton Lundin <glance@acc.umu.se>2014-11-08 15:38:48 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-11-08 11:23:28 -0800
commit1990dafda027a8517dc27f7151834bd2b620ff57 (patch)
tree1fdaf051ece11a064dd5c06562e57d6d0eb516e5
parent3519b75e4ac87d09ceec52abc746b66c3df59967 (diff)
downloadsubsurface-1990dafda027a8517dc27f7151834bd2b620ff57.tar.gz
Remove leftover last_setpoint
Back in 24c491053cd9 ("Don't overwrite zero setpoints") the filling of last_setpoint logic was removed. This clears out the last bits left over. Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--profile.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/profile.c b/profile.c
index 5bfe7b972..d3c5ef857 100644
--- a/profile.c
+++ b/profile.c
@@ -942,13 +942,12 @@ void fill_o2_values(struct divecomputer *dc, struct plot_info *pi, struct dive *
* for plotting. This function called by: create_plot_info_new() */
{
int i, j;
- double last_setpoint, last_sensor[3], o2pressure, amb_pressure;
+ double last_sensor[3], o2pressure, amb_pressure;
for (i = 0; i < pi->nr; i++) {
struct plot_data *entry = pi->entry + i;
if (dc->dctype == CCR) {
- if (i == 0) { // For 1st iteration, initialise the last_ values
- last_setpoint = pi->entry->o2setpoint;
+ if (i == 0) { // For 1st iteration, initialise the last_sensor values
for (j = 0; j < dc->no_o2sensors; j++)
last_sensor[j] = pi->entry->o2sensor[j];
} else { // Now re-insert the missing oxygen pressure values