mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
VPMB: final_tts may be calculated before final sample
We calculate tts every 30s, not every sample. Consider that when determining the time that the ceiling would have cleared if it's after the surfacing time. Signed-off-by: Rick Walsh <rickmwalsh@gmail.com>
This commit is contained in:
parent
fe474ac266
commit
b3b787db94
1 changed files with 1 additions and 1 deletions
|
@ -1080,7 +1080,7 @@ void calculate_deco_information(struct dive *dive, struct divecomputer *dc, stru
|
|||
prev_deco_time = deco_state->deco_time;
|
||||
// Do we need to update deco_time?
|
||||
if (final_tts > 0)
|
||||
deco_state->deco_time = pi->maxtime + final_tts - time_deep_ceiling;
|
||||
deco_state->deco_time = last_ndl_tts_calc_time + final_tts - time_deep_ceiling;
|
||||
else if (time_clear_ceiling > 0)
|
||||
/* Consistent with planner, deco_time ends after ascending (20s @9m/min from 3m)
|
||||
* at end of whole minute after clearing ceiling. The deepest ceiling when planning a dive
|
||||
|
|
Loading…
Reference in a new issue