[PATCH] Recognize O2 percentage from MacDive import
subsurface at henrik.synth.no
subsurface at henrik.synth.no
Thu Jan 31 13:54:14 PST 2013
From: Henrik Brautaset Aronsen <subsurface at henrik.synth.no>
MacDive use "o2percent" in its XML export
Signed-off-by: Henrik Brautaset Aronsen <subsurface at henrik.synth.no>
---
parse-xml.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/parse-xml.c b/parse-xml.c
index eb75e74..3bf9de9 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))
--
1.8.1.1
More information about the subsurface
mailing list