summaryrefslogtreecommitdiffstats
path: root/planner.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-05-26 14:21:37 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-05-26 14:21:37 -0700
commit0f023791f8e47bae725629954454d7c623ca3c4d (patch)
treee95e7bfef418baec6548a633dc593f117dcc0b1e /planner.c
parent4c9dd0e698f7d62f19b2097c03f99fe9d8f3ed6a (diff)
downloadsubsurface-0f023791f8e47bae725629954454d7c623ca3c4d.tar.gz
Fix warning
When converting from assert to if I forgot to invert the comparison... Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'planner.c')
-rw-r--r--planner.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/planner.c b/planner.c
index 8b45252e9..f08acd5e8 100644
--- a/planner.c
+++ b/planner.c
@@ -678,7 +678,7 @@ void plan(struct diveplan *diveplan, char **cached_datap, struct dive **divep, b
/* We will break out when we hit the surface */
do {
/* Ascend to next stop depth */
- if (deco_allowed_depth(tissue_tolerance, diveplan->surface_pressure / 1000.0, dive, 1) < depth)
+ if (deco_allowed_depth(tissue_tolerance, diveplan->surface_pressure / 1000.0, dive, 1) > depth)
fprintf(stderr, "user provided way point above ceiling\n");
int deltad = ascend_velocity(depth, avg_depth, bottom_time) * TIMESTEP;
if (ascend_velocity(depth, avg_depth, bottom_time) != last_ascend_rate) {