diff options
author | Anton Lundin <glance@acc.umu.se> | 2015-09-13 16:52:56 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-09-13 15:26:42 -0700 |
commit | ba8b7c6c275b2149bc2d836ef6ee2f126f8b85ff (patch) | |
tree | e8be1d63b0208af46ab0d75c6d780bd596cbe616 /libdivecomputer.c | |
parent | 9f629b5e2e7624bc444894aa59efa7bb72ba7926 (diff) | |
download | subsurface-ba8b7c6c275b2149bc2d836ef6ee2f126f8b85ff.tar.gz |
Remove leftover bits between sensors and setpoint
Previously subsurface treated DC_SAMPLE_SETPOINT and DC_SAMPLE_PPO2 the
same way.
Back in "Store DC_SAMPLE_PPO2 as a o2 sensor", and "Support multiple o2
sensor values from libdc", i changed that and started to treat
DC_SAMPLE_PPO2 as the o2 sensor values they are.
The po2 variable there was a leftover from when ppo2 and setpoints where
treated the same way, and should be removed.
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libdivecomputer.c b/libdivecomputer.c index 3c699005e..ef6a9b962 100644 --- a/libdivecomputer.c +++ b/libdivecomputer.c @@ -272,7 +272,7 @@ sample_cb(dc_sample_type_t type, dc_sample_value_t value, void *userdata) break; case DC_SAMPLE_PPO2: if (nsensor < 3) - sample->o2sensor[nsensor].mbar = po2 = rint(value.ppo2 * 1000); + sample->o2sensor[nsensor].mbar = rint(value.ppo2 * 1000); else report_error("%d is more o2 sensors than we can handle", nsensor); nsensor++; |