[PATCH] Recognize O2 percentage from MacDive import

miika.turkia at gmail.com miika.turkia at gmail.com
Thu Jan 31 15:20:49 PST 2013


The xslt (next week) should take care of these naming conventions. But of course if macdive can be read well enough without one, i don't have to write one.

MiikaOn 1.2.2013 5:54 subsurface at henrik.synth.no wrote:
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

_______________________________________________
subsurface mailing list
subsurface at hohndel.org
http://lists.hohndel.org/cgi-bin/mailman/listinfo/subsurface



More information about the subsurface mailing list