summaryrefslogtreecommitdiffstats
path: root/parse-xml.c
diff options
context:
space:
mode:
Diffstat (limited to 'parse-xml.c')
-rw-r--r--parse-xml.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/parse-xml.c b/parse-xml.c
index 14ece90d9..cde67327f 100644
--- a/parse-xml.c
+++ b/parse-xml.c
@@ -2591,6 +2591,11 @@ int parse_dlf_buffer(unsigned char *buffer, size_t size)
sample_start();
cur_sample->time.seconds = time;
cur_sample->depth.mm = ((ptr[5] << 8) + ptr[4]) * 10;
+ // Crazy precision on these stored values...
+ // Only store value if we're in CCR/PSCR mode,
+ // because we rather calculate ppo2 our selfs.
+ if (cur_dc->dctype == CCR || cur_dc->dctype == PSCR)
+ cur_sample->o2sensor[0].mbar = ((ptr[7] << 8) + ptr[6]) / 10;
sample_end();
break;
case 1: