Fix units for atmospheric pressure for iconhd type
Was returning mbar, should have been bar. Signed-off-by: Tim Wootton <tim@tee-jay.demon.co.uk>
This commit is contained in:
parent
2af365cfb7
commit
734533e4d1
@ -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;
|
gasmix->nitrogen = 1.0 - gasmix->oxygen - gasmix->helium;
|
||||||
break;
|
break;
|
||||||
case DC_FIELD_ATMOSPHERIC:
|
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;
|
break;
|
||||||
default:
|
default:
|
||||||
return DC_STATUS_UNSUPPORTED;
|
return DC_STATUS_UNSUPPORTED;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user