diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2017-02-08 15:00:04 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-02-09 21:30:49 -0800 |
commit | 0e7d8993a2c1a21b08f7d0525bf101ce6fb15fcd (patch) | |
tree | 7f1f0ad52ac5bd59f0fa76ce7dca583357c6756f /packaging/android | |
parent | e2bbd0ceecff7193bb272430fbebfc4b02dd67c3 (diff) | |
download | subsurface-0e7d8993a2c1a21b08f7d0525bf101ce6fb15fcd.tar.gz |
Make cylinder merging a bit more careful
This makes some further updates to the new cylinder merging code:
- avoid re-using the cylinder if the usage type (OC/diluent/O2) is
different between the two dives, even if the gasmix might be the
same.
- avoid re-using a cylinder if the user has manually added pressure
data for it (and the pressures don't match)
- when deciding to reuse a cylinder, make sure that we merge as much of
the type information as makes sense.
This will potentially result in more cylinders that might need manual
cleanup, but at least we won't be throwing out user data. And in most
cases where merging happens, none of this is an issue (because the data
comes fresh from a dive computer, and won't have been manually edited to
trigger the new rules).
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'packaging/android')
0 files changed, 0 insertions, 0 deletions