Cressi Leonardo now reports temperature from dive header
Signed-off-by: Calle Gunnarsson <calle.gunnarsson@gmail.com>
This commit is contained in:
parent
cdbc0cd9bd
commit
a4e5d4234c
@ -139,6 +139,9 @@ cressi_leonardo_parser_get_field (dc_parser_t *abstract, dc_field_type_t type, u
|
||||
gasmix->oxygen = data[0x19] / 100.0;
|
||||
gasmix->nitrogen = 1.0 - gasmix->oxygen - gasmix->helium;
|
||||
break;
|
||||
case DC_FIELD_TEMPERATURE:
|
||||
*((double *) value) = data[0x22];
|
||||
break;
|
||||
default:
|
||||
return DC_STATUS_UNSUPPORTED;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user