From 0cf9e0570dc08f4d911c5d4b2b57e9b89b077f3b Mon Sep 17 00:00:00 2001 From: Anton Lundin Date: Mon, 31 Aug 2015 23:23:42 +0200 Subject: Store DC_SAMPLE_PPO2 as a o2 sensor DC_SAMPLE_PPO2 represents a known ppO2, and not a setpoint. Signed-off-by: Anton Lundin Signed-off-by: Dirk Hohndel --- libdivecomputer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3-70-g09d2