aboutsummaryrefslogtreecommitdiffstats
path: root/dive.h
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org>2011-11-09 07:37:25 -0800
committerGravatar Linus Torvalds <torvalds@linux-foundation.org>2011-11-09 08:13:17 -0800
commit0089dd8819b7b28ad5c48dbfc881f4011f18014e (patch)
treef6e511bc42d7db27531f6ad33d185eae070f9273 /dive.h
parent2b26b6433f77cb4bf7523a90148a0087549e30e5 (diff)
downloadsubsurface-0089dd8819b7b28ad5c48dbfc881f4011f18014e.tar.gz
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>
Diffstat (limited to 'dive.h')
-rw-r--r--dive.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/dive.h b/dive.h
index 36a406c25..0116a1cf7 100644
--- a/dive.h
+++ b/dive.h
@@ -84,7 +84,7 @@ typedef struct {
typedef struct {
cylinder_type_t type;
struct gasmix gasmix;
- pressure_t start, end;
+ pressure_t start, end, sample_start, sample_end;
} cylinder_t;
extern int get_pressure_units(unsigned int mb, const char **units);