summaryrefslogtreecommitdiffstats
path: root/equipment.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-06-25 21:36:30 +0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-06-25 21:41:58 +0800
commit7f3efbdc98deeb4e4bcd481335761b6439b9552c (patch)
tree429daf20fa70a9148a4253914e705d444ea58bf8 /equipment.c
parent65c5d6815cf7c78231abd76440bb5bab54d9d51c (diff)
downloadsubsurface-7f3efbdc98deeb4e4bcd481335761b6439b9552c.tar.gz
Make gas mod be reasonable for users of imperial units as well
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'equipment.c')
-rw-r--r--equipment.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/equipment.c b/equipment.c
index 6d09e6fab..51020e5a3 100644
--- a/equipment.c
+++ b/equipment.c
@@ -241,7 +241,7 @@ void reset_cylinders(struct dive *dive)
if (cylinder_none(cyl))
continue;
if (cyl->depth.mm == 0) /* if the gas doesn't give a mod, assume conservative pO2 */
- cyl->depth = gas_mod(&cyl->gasmix, pO2, 3000);
+ cyl->depth = gas_mod(&cyl->gasmix, pO2, M_OR_FT(3,10));
if (cyl->type.workingpressure.mbar)
cyl->start.mbar = cyl->end.mbar = cyl->type.workingpressure.mbar;
cyl->gas_used.mliter = 0;