From 2af365cfb704932e5604cda416ef6da831617294 Mon Sep 17 00:00:00 2001 From: Tim Wootton Date: Fri, 11 Oct 2013 23:04:29 +0100 Subject: [PATCH] Adds support for DC_FIELD_ATMOSPHERIC to the iconhd parser Signed-off-by: Tim Wootton --- src/mares_iconhd_parser.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mares_iconhd_parser.c b/src/mares_iconhd_parser.c index 28c5c92..9419f47 100644 --- a/src/mares_iconhd_parser.c +++ b/src/mares_iconhd_parser.c @@ -186,6 +186,9 @@ mares_iconhd_parser_get_field (dc_parser_t *abstract, dc_field_type_t type, unsi gasmix->helium = 0.0; gasmix->nitrogen = 1.0 - gasmix->oxygen - gasmix->helium; break; + case DC_FIELD_ATMOSPHERIC: + *((double *) value) = array_uint16_le (p + 0x26) / 8; + break; default: return DC_STATUS_UNSUPPORTED; }