]> git.tdb.fi Git - ext/subsurface.git/commit
Don't save cylinder start/end pressures unless set by hand
authorLinus Torvalds <torvalds@linux-foundation.org>
Wed, 9 Nov 2011 15:37:25 +0000 (07:37 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 9 Nov 2011 16:13:17 +0000 (08:13 -0800)
commit0089dd8819b7b28ad5c48dbfc881f4011f18014e
treef6e511bc42d7db27531f6ad33d185eae070f9273
parent2b26b6433f77cb4bf7523a90148a0087549e30e5
Don't save cylinder start/end pressures unless set by hand

Keep the sample pressure start/end data separate from the overall
cylinder start/end data - and clean the overall cylinder start/end data
if it matches the samples exactly to avoid the redundancy.

This breaks all the SAC calculations etc, which expect the cylinder
pressures to always be in the cylinder data.  I'll fix that up
separately.

The reason for this is that we really want to keep the manually entered
data separate: the pressure plotting doesn't need the confusion, and
considers end-point data (with interpolation) very different from sample
data.  Also, we do not want to pollute the xml save-file with data that
is computed.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
dive.c
dive.h