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
|
@ -694,7 +694,7 @@ bool DivePlannerPointsModel::addGas(struct gasmix mix)
|
|||
* The user should be able to change this depth manually. */
|
||||
pressure_t modpO2;
|
||||
modpO2.mbar = prefs.decopo2;
|
||||
cyl->depth = gas_mod(&mix, modpO2, 3000);
|
||||
cyl->depth = gas_mod(&mix, modpO2, M_OR_FT(3,10));
|
||||
|
||||
CylindersModel::instance()->setDive(stagingDive);
|
||||
return true;
|
||||
|
|
|
@ -251,7 +251,7 @@ bool CylindersModel::setData(const QModelIndex &index, const QVariant &value, in
|
|||
cyl->gasmix.o2 = string_to_fraction(vString.toUtf8().data());
|
||||
pressure_t modpO2;
|
||||
modpO2.mbar = prefs.decopo2;
|
||||
cyl->depth = gas_mod(&cyl->gasmix, modpO2, 3000);
|
||||
cyl->depth = gas_mod(&cyl->gasmix, modpO2, M_OR_FT(3,10));
|
||||
changed = true;
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue