diff --git a/CHANGELOG.md b/CHANGELOG.md index 189ca0747..20a5e0316 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,4 @@ +core: fix bug when save sea water salinity given by DC desktop: add column for dive notes to the dive list table desktop: fix bug when printing a dive plan with multiple segments desktop: fix remembering of bluetooth address for remembered dive computers (not MacOS) diff --git a/core/save-git.c b/core/save-git.c index e9826e585..42ee4f546 100644 --- a/core/save-git.c +++ b/core/save-git.c @@ -211,8 +211,7 @@ static void save_airpressure(struct membuffer *b, struct divecomputer *dc) static void save_salinity(struct membuffer *b, struct divecomputer *dc) { - /* only save if we have a value that isn't the default of sea water */ - if (!dc->salinity || dc->salinity == SEAWATER_SALINITY) + if (!dc->salinity) return; put_salinity(b, dc->salinity, "salinity ", "g/l\n"); } diff --git a/core/save-xml.c b/core/save-xml.c index a8478fc96..f1498860b 100644 --- a/core/save-xml.c +++ b/core/save-xml.c @@ -152,8 +152,7 @@ static void save_airpressure(struct membuffer *b, struct divecomputer *dc) static void save_salinity(struct membuffer *b, struct divecomputer *dc) { - /* only save if we have a value that isn't the default of sea water */ - if (!dc->salinity || dc->salinity == SEAWATER_SALINITY) + if (!dc->salinity) return; put_string(b, " salinity, " salinity='", " g/l'");