mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Make gas mod be reasonable for users of imperial units as well
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
65c5d6815c
commit
7f3efbdc98
6 changed files with 10 additions and 5 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue