mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
789e86480d
commit
46004c39e2
4 changed files with 10 additions and 1 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue