[PATCH] Add deco model info strings to hw parser

Anton Lundin glance at acc.umu.se
Wed Jan 21 02:24:47 PST 2015


On 21 January, 2015 - Miika Turkia wrote:

> > On 21 Jan 2015, at 15:42, Anton Lundin <glance at acc.umu.se> wrote:
> > 
> > Signed-off-by: Anton Lundin <glance at acc.umu.se>
> > ---
> > 
> > This patch is ment for the Subsurface-testing branch of libdivecomputer.
> > 
> > src/hw_ostc_parser.c | 41 +++++++++++++++++++++++++++++++++++++++++
> > 1 file changed, 41 insertions(+)
> > 
> > diff --git a/src/hw_ostc_parser.c b/src/hw_ostc_parser.c
> > index 800dac4..5e8cc3d 100644
> > --- a/src/hw_ostc_parser.c
> > +++ b/src/hw_ostc_parser.c
> > @@ -56,6 +56,9 @@
> > #define OSTC3_GAUGE 2
> > #define OSTC3_APNEA 3
> > 
> > +#define OSTC3_ZHL16    0
> > +#define OSTC3_ZHL16_GF 1
> > +
> > #define UNSUPPORTED 0xFFFFFFFF
> > 
> > typedef struct hw_ostc_parser_t hw_ostc_parser_t;
> > @@ -84,6 +87,9 @@ typedef struct hw_ostc_layout_t {
> >    unsigned int battery;
> >    unsigned int desat;
> >    unsigned int fw_version;
> > +    unsigned int deco_info1;
> > +    unsigned int deco_info2;
> > +    unsigned int decomode;
> > } hw_ostc_layout_t;
> > 
> > typedef struct hw_ostc_gasmix_t {
> > @@ -118,6 +124,9 @@ static const hw_ostc_layout_t hw_ostc_layout_ostc = {
> >    34, /* battery volt after dive */
> >    17, /* desat */
> >    32, /* fw_version */
> > +    49, /* deco_info1 */
> > +    50, /* deco_info1 */
> 
> should read deco_info2
> 

Of course. Great spotting.

//Anton

-- 
Anton Lundin	+46702-161604


More information about the subsurface mailing list