diff options
author | Henrik Brautaset Aronsen <subsurface@henrik.synth.no> | 2011-12-31 17:15:59 +0100 |
---|---|---|
committer | Henrik Brautaset Aronsen <subsurface@henrik.synth.no> | 2011-12-31 17:15:59 +0100 |
commit | 16b6df559f7b5aabbcbec7d7d08f3687b30384dc (patch) | |
tree | 13f662c31843f3b8de4185c9037bf286cc9a2c3b /libdivecomputer.c | |
parent | 2175226580a523a9a3abba3723991b003eee5a2a (diff) | |
download | subsurface-16b6df559f7b5aabbcbec7d7d08f3687b30384dc.tar.gz |
Define O2 permille for air in one spot
Having the O2 permille defined once is more readable.
Signed-off-by: Henrik Brautaset Aronsen <subsurface@henrik.synth.no>
Diffstat (limited to 'libdivecomputer.c')
-rw-r--r-- | libdivecomputer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libdivecomputer.c b/libdivecomputer.c index 9d4c1065a..daf724190 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; |