summaryrefslogtreecommitdiffstats
path: root/parse-xml.c
diff options
context:
space:
mode:
authorGravatar Henrik Brautaset Aronsen <subsurface@henrik.synth.no>2013-01-31 22:54:14 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-02-01 09:19:38 +1100
commitb03ae632d5bb801aae806e09adfc63a440028edd (patch)
tree62f24b4c66ef3033da6886fb00458e4a68c1fef6 /parse-xml.c
parentb709dff23d94b93ffa484a7bfe46441ece79520f (diff)
downloadsubsurface-b03ae632d5bb801aae806e09adfc63a440028edd.tar.gz
Recognize O2 percentage from MacDive import
MacDive use "o2percent" in its XML export Signed-off-by: Henrik Brautaset Aronsen <subsurface@henrik.synth.no> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'parse-xml.c')
-rw-r--r--parse-xml.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/parse-xml.c b/parse-xml.c
index eb75e74c0..3bf9de9d8 100644
--- a/parse-xml.c
+++ b/parse-xml.c
@@ -1005,6 +1005,8 @@ static void try_to_fill_dive(struct dive *dive, const char *name, char *buf)
return;
if (MATCH(".o2", gasmix, &dive->cylinder[cur_cylinder_index].gasmix.o2))
return;
+ if (MATCH(".o2percent", gasmix, &dive->cylinder[cur_cylinder_index].gasmix.o2))
+ return;
if (MATCH(".n2", gasmix_nitrogen, &dive->cylinder[cur_cylinder_index].gasmix))
return;
if (MATCH(".he", gasmix, &dive->cylinder[cur_cylinder_index].gasmix.he))