summaryrefslogtreecommitdiffstats
path: root/profile.c
diff options
context:
space:
mode:
authorGravatar Willem Ferguson <willemferguson@zoology.up.ac.za>2015-01-05 09:20:26 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-01-05 09:18:06 -0800
commit0de3bc84523778ad74a305a5f9e85645c90e02cf (patch)
treefcef310e491b9bb8de14c88ca756c21eaaccf25c /profile.c
parent27bfbee4e8c3644dedea61f67338dcb2b83ffbed (diff)
downloadsubsurface-0de3bc84523778ad74a305a5f9e85645c90e02cf.tar.gz
Display CCR setpoint values on the po2 graph
When a CCR dive is viewed and the toolbar button for PO2 is activated, both the PO2 (green line) and the O2 setpoint (red line) are shown. This allows evaluation of the PO2 in the CCR loop with respect to the pre-configured O2 setpoint. The setpoint graph can be disabled from the Preferences/Graphs tab by checking the appropriate checkbox. Signed-off-by: willem ferguson <willemferguson@zoology.up.ac.za> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'profile.c')
-rw-r--r--profile.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/profile.c b/profile.c
index e2913b3c0..a09268bf1 100644
--- a/profile.c
+++ b/profile.c
@@ -17,7 +17,6 @@
#include "libdivecomputer/version.h"
#include "membuffer.h"
-
//#define DEBUG_GAS 1
int selected_dive = -1; /* careful: 0 is a valid value */
@@ -609,7 +608,7 @@ struct plot_data *populate_plot_entries(struct dive *dive, struct divecomputer *
entry->in_deco = sample->in_deco;
entry->cns = sample->cns;
if (dc->dctype == CCR) {
- entry->o2pressure.mbar = sample->setpoint.mbar; // for rebreathers
+ entry->o2pressure.mbar = entry->o2setpoint.mbar = sample->setpoint.mbar; // for rebreathers
entry->o2sensor[0].mbar = sample->o2sensor[0].mbar; // for up to three rebreather O2 sensors
entry->o2sensor[1].mbar = sample->o2sensor[1].mbar;
entry->o2sensor[2].mbar = sample->o2sensor[2].mbar;