diff options
author | Stefan Fuchs <sfuchs@gmx.de> | 2017-11-27 18:20:21 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-11-27 11:49:08 -0800 |
commit | 46004c39e266fe76f9945e52000dd051de3f4099 (patch) | |
tree | 9e5005fec23c7cda7fcbdf132785209ac26c2f2c /core/save-git.c | |
parent | 789e86480d9dd2b245845ac1327ee0cc71708942 (diff) | |
download | subsurface-46004c39e26.tar.gz |
Store and load the planner related depth info of a cylinder in logfile
Store cylinder.depth in XML files and in git storage.
This info is in fact the gas switch depth of a specific gas/cylinder
in the planner.
This change avoids the need of typing in a user specific depth value
again when replanning an existing planned dive.
Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
Diffstat (limited to 'core/save-git.c')
-rw-r--r-- | core/save-git.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/save-git.c b/core/save-git.c index 7d7c8d9d2..4c80b3b29 100644 --- a/core/save-git.c +++ b/core/save-git.c @@ -157,7 +157,8 @@ static void save_cylinder_info(struct membuffer *b, struct dive *dive) put_pressure(b, cylinder->end, " end=", "bar"); if (cylinder->cylinder_use != OC_GAS) put_format(b, " use=%s", cylinderuse_text[cylinder->cylinder_use]); - + if (cylinder->depth.mm != 0) + put_milli(b, " depth='", cylinder->depth.mm, " m'"); put_string(b, "\n"); } } |