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/parse-xml.c | |
parent | 789e86480d9dd2b245845ac1327ee0cc71708942 (diff) | |
download | subsurface-46004c39e266fe76f9945e52000dd051de3f4099.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/parse-xml.c')
-rw-r--r-- | core/parse-xml.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/parse-xml.c b/core/parse-xml.c index 49e477c0b..6fd298710 100644 --- a/core/parse-xml.c +++ b/core/parse-xml.c @@ -1467,6 +1467,8 @@ static void try_to_fill_dive(struct dive *dive, const char *name, char *buf) return; if (MATCH("use.cylinder", cylinder_use, &dive->cylinder[cur_cylinder_index].cylinder_use)) return; + if (MATCH("depth.cylinder", depth, &dive->cylinder[cur_cylinder_index].depth)) + return; if (MATCH("o2", gasmix, &dive->cylinder[cur_cylinder_index].gasmix.o2)) return; if (MATCH("o2percent", gasmix, &dive->cylinder[cur_cylinder_index].gasmix.o2)) |