aboutsummaryrefslogtreecommitdiffstats
path: root/dive.h
diff options
context:
space:
mode:
Diffstat (limited to 'dive.h')
-rw-r--r--dive.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/dive.h b/dive.h
index 1cb0613ee..2c8f18b94 100644
--- a/dive.h
+++ b/dive.h
@@ -342,6 +342,11 @@ struct dive {
struct divecomputer dc;
};
+static inline int dive_has_location(struct dive *dive)
+{
+ return dive->latitude.udeg || dive->longitude.udeg;
+}
+
/* Pa = N/m^2 - so we determine the weight (in N) of the mass of 10m
* of water (and use standard salt water at 1.03kg per liter if we don't know salinity)
* and add that to the surface pressure (or to 1013 if that's unknown) */