X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=libdivecomputer.c;h=daf724190d44d7868ff1a753c29a6a9954c06e09;hb=53ecd2025d00e844fbfb84b5765d975e1e8942be;hp=9d4c1065a3817ce046798448b7c7a39a2a10be2a;hpb=ff0209a5b42ced7d8b9ef9c5d84cbc5a4d84a0ac;p=ext%2Fsubsurface.git diff --git a/libdivecomputer.c b/libdivecomputer.c index 9d4c106..daf7241 100644 --- a/libdivecomputer.c +++ b/libdivecomputer.c @@ -109,7 +109,7 @@ static int parse_gasmixes(struct dive *dive, parser_t *parser, int ngases) he = gasmix.helium * 1000 + 0.5; /* Ignore bogus data - libdivecomputer does some crazy stuff */ - if (o2 < 210 || o2 >= 1000) + if (o2 <= AIR_PERMILLE || o2 >= 1000) o2 = 0; if (he < 0 || he >= 800 || o2+he >= 1000) he = 0;