mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Don't ignore actual diveable mixes
Fist is really obvious. I quite regularly decompress using pure O2. It's as good a last decompression gas as you get. The second is a bit harder. There are very few that dive with 80%+ helium in their mixes but they exist, and there are real weirdos that dive heliox, so they are actual diveable gases too. Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
84680fdd5f
commit
692ad31ad3
1 changed files with 2 additions and 2 deletions
|
@ -116,9 +116,9 @@ static int parse_gasmixes(device_data_t *devdata, struct dive *dive, dc_parser_t
|
|||
he = rint(gasmix.helium * 1000);
|
||||
|
||||
/* Ignore bogus data - libdivecomputer does some crazy stuff */
|
||||
if (o2 + he <= O2_IN_AIR || o2 >= 1000)
|
||||
if (o2 + he <= O2_IN_AIR || o2 > 1000)
|
||||
o2 = 0;
|
||||
if (he < 0 || he >= 800 || o2 + he >= 1000)
|
||||
if (he < 0 || o2 + he > 1000)
|
||||
he = 0;
|
||||
|
||||
dive->cylinder[i].gasmix.o2.permille = o2;
|
||||
|
|
Loading…
Add table
Reference in a new issue