]> git.tdb.fi Git - ext/subsurface.git/commit
Do some basic sanity testing on the libdivecomputer gasmix data
authorLinus Torvalds <torvalds@linux-foundation.org>
Mon, 12 Sep 2011 20:31:43 +0000 (13:31 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 12 Sep 2011 20:31:43 +0000 (13:31 -0700)
commit4e7161efd6738cc50c3879846b5df7d1d58c3c58
tree78ade631127f34371f0f1648dc03063de254b601
parent42f627b8b1cf7e929a30c0a07a5fb44a4cec9e1f
Do some basic sanity testing on the libdivecomputer gasmix data

It's quite often obvious crap for the "doesn't exist" or "plain air" case.

So if it's reporting 100% O2, we just ignore it.  Sure, it could be
right, but for the dives I have I know it's just libdivecomputer being
wrong.

Same goes for obvious crap like 255% Helium.

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