diff options
author | Henrik Brautaset Aronsen <subsurface@henrik.synth.no> | 2011-12-31 17:15:59 +0100 |
---|---|---|
committer | Henrik Brautaset Aronsen <subsurface@henrik.synth.no> | 2011-12-31 17:15:59 +0100 |
commit | 16b6df559f7b5aabbcbec7d7d08f3687b30384dc (patch) | |
tree | 13f662c31843f3b8de4185c9037bf286cc9a2c3b /equipment.c | |
parent | 2175226580a523a9a3abba3723991b003eee5a2a (diff) | |
download | subsurface-16b6df559f7b5aabbcbec7d7d08f3687b30384dc.tar.gz |
Define O2 permille for air in one spot
Having the O2 permille defined once is more readable.
Signed-off-by: Henrik Brautaset Aronsen <subsurface@henrik.synth.no>
Diffstat (limited to 'equipment.c')
-rw-r--r-- | equipment.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/equipment.c b/equipment.c index 482fb4e1c..d2c7891ae 100644 --- a/equipment.c +++ b/equipment.c @@ -285,7 +285,7 @@ static void show_cylinder(cylinder_t *cyl, struct cylinder_widget *cylinder) o2 = cyl->gasmix.o2.permille / 10.0; he = cyl->gasmix.he.permille / 10.0; if (!o2) - o2 = 21.0; + o2 = AIR_PERMILLE / 10.0; gtk_spin_button_set_value(GTK_SPIN_BUTTON(cylinder->o2), o2); gtk_spin_button_set_value(GTK_SPIN_BUTTON(cylinder->he), he); } |