mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Saves default sea water salinity in log
Some DCs only report water type, without salinity level. Subsurface fixes most of these cases using default levels, but when the type of water is Sea/Salt, this fix was not saved. This causes a bit confusion, mainly if the user defines own salinity level. Signed-off-by: Rafael M. Salvioni <rafael.salvioni@gmail.com>
This commit is contained in:
parent
9da7ec4828
commit
2f4b415e91
3 changed files with 3 additions and 4 deletions
|
@ -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, " <water");
|
||||
put_salinity(b, dc->salinity, " salinity='", " g/l'");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue