On Tue, Jan 06, 2015 at 01:23:31PM +0100, Anton Lundin wrote:
> This triggers the rest of the code to treat the sensor value as our
> ppO2 value.

I'm curious about this... shouldn't "every sensor reports 0" be what
triffers this?

I guess I'm fundamentally confused about what we intend the scenarios to
be.

Can someone create a matrix that shows:

Type of dive
Type of data we have from the dive computer
Which fields in the sample we use for what

I know exactly what is what in an OC dive. We need to create a better FD
mode, but I have a good idea how that could look. But CCR and PSCR? Only
vague guesses.

Help?

/D

> diff --git a/parse-xml.c b/parse-xml.c
> index fe13f66..4cac31a 100644
> --- a/parse-xml.c
> +++ b/parse-xml.c
> @@ -2580,6 +2580,10 @@ int parse_dlf_buffer(unsigned char *buffer, size_t 
> size)
>       /* Done with parsing what we know about the dive header */
>       ptr += 32;
>  
> +     // We're going to interpret ppO2 saved as a sensor value in these modes.
> +     if (cur_dc->dctype == CCR || cur_dc->dctype == PSCR)
> +             cur_dc->no_o2sensors = 1;
> +
>       while (ptr < buffer + size) {
>               time = ((ptr[0] >> 4) & 0x0f) +
>                       ((ptr[1] << 4) & 0xff0) +
> -- 
_______________________________________________
subsurface mailing list
[email protected]
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface

Reply via email to