mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
core: read and write the user-specified salinity
Both XML and git storage are added. Signed-off-by: willemferguson <willemferguson@zoology.up.ac.za> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
ebabbfb457
commit
d2cf58e07e
10 changed files with 62 additions and 18 deletions
|
@ -499,9 +499,10 @@ void save_one_dive_to_mb(struct membuffer *b, struct dive *dive, bool anonymize)
|
|||
if (dive->chill)
|
||||
put_format(b, " chill='%d'", dive->chill);
|
||||
save_tags(b, dive->tag_list);
|
||||
if (dive->dive_site) {
|
||||
if (dive->dive_site)
|
||||
put_format(b, " divesiteid='%8x'", dive->dive_site->uuid);
|
||||
}
|
||||
if (dive->user_salinity)
|
||||
put_salinity(b, dive->user_salinity, " watersalinity='", " g/l'");
|
||||
show_date(b, dive->when);
|
||||
if (surface_pressure.mbar)
|
||||
put_pressure(b, surface_pressure, " airpressure='", " bar'");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue