diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2013-03-28 10:06:43 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-03-28 13:47:31 -0700 |
commit | 1b05d28944ef72a62e788efdac2dcdc2dc4771ef (patch) | |
tree | d5370ac643f1087d9d794a43485658dc2f848574 /profile.c | |
parent | 99070c49e2ed1834c7371ce7500d78895e85e67c (diff) | |
download | subsurface-1b05d28944ef72a62e788efdac2dcdc2dc4771ef.tar.gz |
Use the new get_o2()/get_he() helper functions more widely
They do the "02=0 means air" thing autmatically, and make for less
typing. So use them more widely in places that looked up the o2 and he
permille values of a gasmix.
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'profile.c')
-rw-r--r-- | profile.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1877,8 +1877,8 @@ static void calculate_deco_information(struct dive *dive, struct divecomputer *d int cylinderindex = entry->cylinderindex; amb_pressure = depth_to_mbar(entry->depth, dive) / 1000.0; - fo2 = dive->cylinder[cylinderindex].gasmix.o2.permille ? : O2_IN_AIR; - fhe = dive->cylinder[cylinderindex].gasmix.he.permille; + fo2 = get_o2(&dive->cylinder[cylinderindex].gasmix); + fhe = get_he(&dive->cylinder[cylinderindex].gasmix); double ratio = (double)fhe / (1000.0 - fo2); if (entry->po2) { |