From 34b61ad28846206f6d88d29088af9b0cc0e619b5 Mon Sep 17 00:00:00 2001 From: "Robert C. Helling" Date: Fri, 6 May 2022 22:33:57 +0200 Subject: [PATCH] Use 10ft as deco step size in imperial units in profile The calculation of the deco steps shown in the profile infobox is somewhat independent of the planner. When set to imperial units, the distance between deco stops should be 10ft rather than 3m as 15m is only 49ft. Signed-off-by: Robert C. Helling --- core/profile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/profile.c b/core/profile.c index c3478a8d4..9b004b2df 100644 --- a/core/profile.c +++ b/core/profile.c @@ -849,7 +849,7 @@ static void calculate_ndl_tts(struct deco_state *ds, const struct dive *dive, st const int ascent_s_per_deco_step = 1; /* how long time steps in deco calculations? */ const int time_stepsize = 60; - const int deco_stepsize = 3000; + const int deco_stepsize = M_OR_FT(3, 10); /* at what depth is the current deco-step? */ int next_stop = ROUND_UP(deco_allowed_depth( tissue_tolerance_calc(ds, dive, depth_to_bar(entry->depth, dive), in_planner),