mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
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>
This commit is contained in:
parent
70d9297e3a
commit
0cf9e0570d
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue