]> git.tdb.fi Git - ext/subsurface.git/commitdiff
We forgot to pick up the 'value' field of a dive event
authorLinus Torvalds <torvalds@linux-foundation.org>
Sat, 1 Oct 2011 04:55:51 +0000 (21:55 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 1 Oct 2011 04:55:51 +0000 (21:55 -0700)
Just missed that one entirely in the xml parser for some reason.
Probably because the fields don't have much semantic meaning, so I
didn't even realize that I had missed one of the random integer values
in an event.

On my suunto, the 'value' field seems to contain things like the new
Oxygen percentage of a gas change event etc.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
parse-xml.c

index 6eafb0d3aaf993bf8efc78b5d6916387ac0f3c0a..efae6b61fd196e893cacc46df8fcffc280f21fd9 100644 (file)
@@ -587,6 +587,8 @@ static void try_to_fill_event(const char *name, char *buf)
                return;
        if (MATCH(".flags", get_index, &event.flags))
                return;
+       if (MATCH(".value", get_index, &event.value))
+               return;
        nonmatch("event", name, buf);
 }