diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-11-07 22:45:59 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-11-07 22:55:38 -0800 |
commit | 082e59ea724f3b44fef0d2a4f21766e981b35194 (patch) | |
tree | b4d1892da0daacf150bf02819a1a102f7b5a5e11 /dives/test35.xml | |
parent | dbc7dbb0741cd6fc5af1c8c389c3ed0caba4ad57 (diff) | |
download | subsurface-082e59ea724f3b44fef0d2a4f21766e981b35194.tar.gz |
Add support for libdivecomputer's new TEMPERATURE fields
Parse air temperature and water temperature if available from the dive
computer. Subsurface happily tracks the temperatures in the dive samples,
but for water temperature in the header ("overall" water temperature) we
currently support only one field. So I ordered the code so that if it is
available, the minimum water temperature will be used, absent a minimum
water temperature we use the maximum water temperature.
Side note:
Since the libdivecomputer maintainer disagrees with the Subsurface
developers regarding a sane way to allow a consumer of his library to
detect if a feature is supported in a particular commit of the library,
the way we decide whether to build this code or not is decidedly hacky.
DC_GASMIX_UNKNOWN happens to be a #define we can check that was added
right around the time the temperature support was added. Sadly there is
no #define that we could check to see if temperature fields are supported.
How insane is that...
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'dives/test35.xml')
0 files changed, 0 insertions, 0 deletions