On 13 September, 2015 - Anton Lundin wrote: > This removes leftover bits from when setpoint and sensor values where > treated the same way. >
I was/still are to tired to write good commit messages. Here comes some explanation. 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. //Anton - Now with 8 usable fingers > Signed-off-by: Anton Lundin <[email protected]> > --- > libdivecomputer.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/libdivecomputer.c b/libdivecomputer.c > index 3c69900..ef6a9b9 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++; > -- > 2.1.4 -- Anton Lundin +46702-161604 _______________________________________________ subsurface mailing list [email protected] http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface
