diff options
author | Rick Walsh <rickmwalsh@gmail.com> | 2016-05-21 20:14:23 +1000 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-05-21 07:03:55 -0700 |
commit | 1e607ae98d2f57ebb8dab27ada29187d9bd2dffb (patch) | |
tree | 342754110e953b1d22e5a810ce7cfadac151ce57 /core/dive.c | |
parent | 9b29173363861861949814191861fa46e255c349 (diff) | |
download | subsurface-1e607ae98d2f57ebb8dab27ada29187d9bd2dffb.tar.gz |
fixup: Don't confuse EAD and END
The previous patch (Planner: add best mix EAD preference) used the term EAD
(equivalent air depth) in variable names and strings, when it should have been
END (equivalent narcotic depth).
They're not the same thing and shouldn't be confused.
Signed-off-by: Rick Walsh <rickmwalsh@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core/dive.c')
-rw-r--r-- | core/dive.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/dive.c b/core/dive.c index c4f5dd778..20ab2e5d6 100644 --- a/core/dive.c +++ b/core/dive.c @@ -3654,7 +3654,7 @@ fraction_t best_He(depth_t depth, struct dive *dive) { fraction_t fhe; int pnarcotic, ambient; - pnarcotic = depth_to_mbar(prefs.bestmixead, dive); + pnarcotic = depth_to_mbar(prefs.bestmixend, dive); ambient = depth_to_mbar(depth.mm, dive); fhe.permille = (100 - 100 * pnarcotic / ambient) * 10; //use integer arithmetic to round up to nearest percent if (fhe.permille < 0) |