mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 13:10:19 +00:00
Don't plan gas switches when in CCR mode
Signed-off-by: Robert C. Helling <helling@atdotde.de> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
e288751353
commit
1dfebe7c10
1 changed files with 7 additions and 1 deletions
|
@ -790,7 +790,13 @@ int plan(struct diveplan *diveplan, char **cached_datap, bool is_planner, bool s
|
|||
|
||||
best_first_ascend_cylinder = current_cylinder;
|
||||
/* Find the gases available for deco */
|
||||
|
||||
if (po2) { // Don't change gas in CCR mode
|
||||
gaschanges = NULL;
|
||||
gaschangenr = 0;
|
||||
} else {
|
||||
gaschanges = analyze_gaslist(diveplan, &gaschangenr, depth, &best_first_ascend_cylinder);
|
||||
}
|
||||
/* Find the first potential decostopdepth above current depth */
|
||||
for (stopidx = 0; stopidx < sizeof(decostoplevels) / sizeof(int); stopidx++)
|
||||
if (decostoplevels[stopidx] >= depth)
|
||||
|
|
Loading…
Reference in a new issue