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:
parent
920ff15f71
commit
fc7cb09b37
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user