From fc7cb09b37fc3e39fe7d60f1af83f506b7bfcbd2 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Mon, 7 May 2018 11:14:57 +0200 Subject: Planner: Correctly fill out last_manual_time in fake_dc() By not filling out this value, entering of manual dives was broken for dive lengths starting with a digit 5 or higher. Fixes #1211 Signed-off-by: Berthold Stoeger --- core/device.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/device.c b/core/device.c index c9036304a..57f7576e1 100644 --- a/core/device.c +++ b/core/device.c @@ -133,6 +133,9 @@ void fake_dc(struct divecomputer *dc) return; } + /* Set last manually entered time to the total dive length */ + dc->last_manual_time = dc->duration; + /* * We want to fake the profile so that the average * depth ends up correct. However, in the absence of -- cgit v1.2.3-70-g09d2