summaryrefslogtreecommitdiffstats
path: root/libdivecomputer.c
diff options
context:
space:
mode:
authorGravatar Anton Lundin <glance@acc.umu.se>2015-08-31 23:23:42 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-08-31 15:12:53 -0700
commit0cf9e0570dc08f4d911c5d4b2b57e9b89b077f3b (patch)
treed3e9d362da32f2475cf68b8e033889f86bdb57a2 /libdivecomputer.c
parent70d9297e3a5a1f3034c85a0907f6e2334503f2ca (diff)
downloadsubsurface-0cf9e0570dc08f4d911c5d4b2b57e9b89b077f3b.tar.gz
Store DC_SAMPLE_PPO2 as a o2 sensor
DC_SAMPLE_PPO2 represents a known ppO2, and not a setpoint. Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'libdivecomputer.c')
-rw-r--r--libdivecomputer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libdivecomputer.c b/libdivecomputer.c
index bbabb1c1c..e877e5962 100644
--- a/libdivecomputer.c
+++ b/libdivecomputer.c
@@ -269,7 +269,7 @@ sample_cb(dc_sample_type_t type, dc_sample_value_t value, void *userdata)
sample->setpoint.mbar = po2 = rint(value.setpoint * 1000);
break;
case DC_SAMPLE_PPO2:
- sample->setpoint.mbar = po2 = rint(value.ppo2 * 1000);
+ sample->o2sensor[0].mbar = po2 = rint(value.ppo2 * 1000);
break;
case DC_SAMPLE_CNS:
sample->cns = cns = rint(value.cns * 100);