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 <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2018-05-07 11:14:57 +02:00 committed by Lubomir I. Ivanov
parent 920ff15f71
commit fc7cb09b37

View file

@ -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