diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2012-09-26 11:04:50 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2012-09-26 11:04:50 -0700 |
commit | 85925afe43ff14fe44b919dbd2bc5f4570d105a0 (patch) | |
tree | 130898128371f78859a55037f54d09b0af3de065 /uemis.c | |
parent | fcfc5dd57c2fe8cca49e4e2f3296c49cc9308520 (diff) | |
parent | cb48db275e3877314c6da102990bed6c6980bd7f (diff) | |
download | subsurface-85925afe43ff14fe44b919dbd2bc5f4570d105a0.tar.gz |
Merge branch 'uemis-native'
This brings in the code to download dive information directly from a Uemis
Zurich dive computer.
The implementation contains a major hack that hooks the uemis code into
the same data structures used to setup libdivecomputer. This gives the
best result for the user, but is not something that I like as a long term
solution as it relies on internal libdivecomputer data structures.
Diffstat (limited to 'uemis.c')
-rw-r--r-- | uemis.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -229,7 +229,8 @@ void uemis_parse_divelog_binary(char *base64, void *datap) { sample->depth.mm = pressure_to_depth(u_sample->water_pressure); sample->temperature.mkelvin = (u_sample->dive_temperature * 100) + 273150; sample->cylinderindex = u_sample->active_tank; - sample->cylinderpressure.mbar= u_sample->tank_pressure * 10; + sample->cylinderpressure.mbar = + (u_sample->tank_pressure_high * 256 + u_sample->tank_pressure_low) * 10; uemis_event(dive, sample, u_sample); finish_sample(dive); i += 0x25; |