mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Fix warning
When converting from assert to if I forgot to invert the comparison... Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
4c9dd0e698
commit
0f023791f8
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue