From b03ae632d5bb801aae806e09adfc63a440028edd Mon Sep 17 00:00:00 2001 From: Henrik Brautaset Aronsen Date: Thu, 31 Jan 2013 22:54:14 +0100 Subject: Recognize O2 percentage from MacDive import MacDive use "o2percent" in its XML export Signed-off-by: Henrik Brautaset Aronsen Signed-off-by: Dirk Hohndel --- parse-xml.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'parse-xml.c') 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)) -- cgit v1.2.3-70-g09d2