mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Introduce an on/off switch for calculating ndl/tts
Let the user choose if the calculation of ndl and tts is worth the time it takes. Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
dbd4a471ec
commit
4bb8368a20
6 changed files with 38 additions and 0 deletions
|
|
@ -1014,6 +1014,11 @@ static void calculate_deco_information(struct dive *dive, struct divecomputer *d
|
|||
entry->ceilings[k] = deco_allowed_depth(tolerated_by_tissue[k], surface_pressure, dive, 1);
|
||||
|
||||
/* calculate DECO STOP / TTS / NDL */
|
||||
|
||||
/* bail if we shouldn't */
|
||||
if (!prefs.calc_ndl_tts)
|
||||
continue;
|
||||
|
||||
/* We are going to mess up deco state, so store it for later restore */
|
||||
char *cache_data = NULL;
|
||||
cache_deco_state(tissue_tolerance, &cache_data);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue