diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2020-03-15 19:07:44 +0100 |
---|---|---|
committer | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2020-04-07 00:13:35 +0200 |
commit | bbd3f0dd6d019245b7708b867e7f4c6522332443 (patch) | |
tree | cad532a4800dd62aa690ec537c7e636c4117a71e /core/equipment.c | |
parent | 4ae87da58cda895f3573704966ef2e0dd8161864 (diff) | |
download | subsurface-bbd3f0dd6d019245b7708b867e7f4c6522332443.tar.gz |
cylinders: use preferences modpO2 preferences value
Use the user-editable MOD-pO2 preferences value when creating
a default cylinder. It is not clear to me, when that even has
a consequence, but it looks like the right thing to do.
Reported-by: Robert C. Helling <helling@atdotde.de>
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/equipment.c')
-rw-r--r-- | core/equipment.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/equipment.c b/core/equipment.c index 24d1d826b..494baf5c1 100644 --- a/core/equipment.c +++ b/core/equipment.c @@ -397,7 +397,7 @@ void fill_default_cylinder(const struct dive *dive, cylinder_t *cyl) { const char *cyl_name = prefs.default_cylinder; struct tank_info_t *ti = tank_info; - pressure_t pO2 = {.mbar = 1600}; + pressure_t pO2 = {.mbar = lrint(prefs.modpO2 * 1000.0)}; if (!cyl_name) return; |