diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-04-20 21:37:16 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-04-20 21:37:16 -0700 |
commit | 3953800fe6e9e26f8e987d61cda1d2fd53ca97c6 (patch) | |
tree | ea54e5b12890187f6f9e9f4f129b77da06e01635 /uemis.c | |
parent | 3fb5f84e1196872ed33d40debd53f635a112b411 (diff) | |
download | subsurface-3953800fe6e9e26f8e987d61cda1d2fd53ca97c6.tar.gz |
Uemis downloader: don't discard samples too early
We do a good job in the fixup_dive() code to make sure we don't add long
surface tails to the dives, so don't try too hard to guess the correct
last sample in the Uemis specific code.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'uemis.c')
-rw-r--r-- | uemis.c | 7 |
1 files changed, 0 insertions, 7 deletions
@@ -335,13 +335,6 @@ void uemis_parse_divelog_binary(char *base64, void *datap) u_sample = (uemis_sample_t *)(data + i); while ((i <= datalen) && (data[i] != 0 || data[i+1] != 0)) { /* it seems that a dive_time of 0 indicates the end of the valid readings */ - /* the SDA usually records more samples after the end of the dive -- - * we want to discard those, but not cut the dive short; sadly the dive - * duration in the header is a) in minutes and b) up to 3 minutes short */ - if (u_sample->dive_time > dive->dc.duration.seconds + 180) { - i += 0x25; - continue; - } if (u_sample->active_tank != active) { active = u_sample->active_tank; add_gas_switch_event(dive, dc, u_sample->dive_time, active); |