From b9fcc9543dac4723c84c03a3d4e9bdbd176483b1 Mon Sep 17 00:00:00 2001 From: "Robert C. Helling" Date: Wed, 8 Aug 2018 16:09:44 +0200 Subject: Allow zero length segments in planner Those are needed to indicate bailout or set point switches at the beginning of the ascend. Signed-off-by: Robert C. Helling --- core/planner.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core') diff --git a/core/planner.c b/core/planner.c index 3821890e3..eefa94143 100644 --- a/core/planner.c +++ b/core/planner.c @@ -410,7 +410,7 @@ void add_to_end_of_diveplan(struct diveplan *diveplan, struct divedatapoint *dp) lastdp = &(*lastdp)->next; } *lastdp = dp; - if (ldp && dp->time != 0) + if (ldp) dp->time += lasttime; } -- cgit v1.2.3-70-g09d2