diff options
Diffstat (limited to 'core/dive.c')
-rw-r--r-- | core/dive.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/dive.c b/core/dive.c index 2073099e2..00add41e6 100644 --- a/core/dive.c +++ b/core/dive.c @@ -1196,6 +1196,11 @@ static void fixup_water_salinity(struct dive *dive) dive->salinity = (sum + nr / 2) / nr; } +int get_dive_salinity(const struct dive *dive) +{ + return dive->user_salinity ? dive->user_salinity : dive->salinity; +} + static void fixup_meandepth(struct dive *dive) { struct divecomputer *dc; |