[PATCH] Set in_deco flags for subsurface calculated deco

Anton Lundin glance at acc.umu.se
Mon Oct 14 13:44:37 UTC 2013


Now when we look at in_deco for ploting of deco-stops, we need to set
that flag for non-dc calculated deco too.

Signed-off-by: Anton Lundin <glance at acc.umu.se>
---
 profile.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/profile.c b/profile.c
index 203d58b..7e0d50e 100644
--- a/profile.c
+++ b/profile.c
@@ -1017,6 +1017,7 @@ static void calculate_deco_information(struct dive *dive, struct divecomputer *d
 			int next_stop = ROUND_UP(deco_allowed_depth(tissue_tolerance, surface_pressure, dive, 1), deco_stepsize);
 			int ascent_depth = entry->depth;
 			entry->tts = 0;
+			entry->in_deco = TRUE;
 
 			/* Add segments for movement to stopdepth */
 			for (; ascent_depth > next_stop; ascent_depth -= ascent_mm_per_step, entry->tts += ascent_s_per_step) {
-- 
1.8.1.2



More information about the subsurface mailing list