diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-11-25 12:39:08 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2012-11-25 13:05:32 -0800 |
commit | 42240a83ff8e5cfb636dcc31aa2faf99bb19f417 (patch) | |
tree | bb0c0d1a432c19b9372eac358783cf22a2bfc55b /file.h | |
parent | 7bfc8de55e0476b5604496839d920db597490a83 (diff) | |
download | subsurface-42240a83ff8e5cfb636dcc31aa2faf99bb19f417.tar.gz |
Be much saner about merging dive computer data
Now that we have dive computer device ID fields etc, we can do a much
better job of merging the dive computer data.
The rule is
- if we actually merge two disjoint dives (ie extended surface interval
causing the dive computer to think the dive ended and turning two of
those dives into one), find the *matching* dive computer from the
other dive to combine with.
- if we are merging dives at the same time, discard old-style data with
no dive computer info (ie act like a re-download)
- if we have new-style dive computers with identifiers, take them all.
which seems to work fairly well.
There's more tweaking to be done, but I think this is getting to the
point where it largely works.
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'file.h')
0 files changed, 0 insertions, 0 deletions