From 04f372f8aa5b4f9ba462e0e93b76f3dde6af00f1 Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Wed, 19 Oct 2011 10:06:11 -0700 Subject: [PATCH] Parse the xml sample cylinder index properly We would save it in the xml file, but then not actually read it back properly. Oops. Not that we actually have any multi-tank dives yet, so it doesn't matter. Yet. Signed-off-by: Linus Torvalds --- parse-xml.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/parse-xml.c b/parse-xml.c index 6a08a38..1b0c449 100644 --- a/parse-xml.c +++ b/parse-xml.c @@ -604,6 +604,8 @@ static void try_to_fill_sample(struct sample *sample, const char *name, char *bu return; if (MATCH(".sample.cylpress", pressure, &sample->cylinderpressure)) return; + if (MATCH(".sample.cylinderindex", get_index, &sample->cylinderindex)) + return; if (MATCH(".sample.depth", depth, &sample->depth)) return; if (MATCH(".sample.temp", temperature, &sample->temperature)) -- 2.43.0