From 734533e4d1cc4dbd4f4e38cc6f33d2b4cef7c5c0 Mon Sep 17 00:00:00 2001 From: Tim Wootton Date: Tue, 15 Oct 2013 08:46:12 +0100 Subject: [PATCH] Fix units for atmospheric pressure for iconhd type Was returning mbar, should have been bar. Signed-off-by: Tim Wootton --- src/mares_iconhd_parser.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mares_iconhd_parser.c b/src/mares_iconhd_parser.c index 9419f47..0d48945 100644 --- a/src/mares_iconhd_parser.c +++ b/src/mares_iconhd_parser.c @@ -187,7 +187,8 @@ mares_iconhd_parser_get_field (dc_parser_t *abstract, dc_field_type_t type, unsi gasmix->nitrogen = 1.0 - gasmix->oxygen - gasmix->helium; break; case DC_FIELD_ATMOSPHERIC: - *((double *) value) = array_uint16_le (p + 0x26) / 8; + // Pressure (1/8 millibar) + *((double *) value) = array_uint16_le (p + 0x26) / 8000.0; break; default: return DC_STATUS_UNSUPPORTED;