mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Only warn when trying to replan a logged dive
If there are more than 100 samples, average some of them so we end up with no more than 100. Signed-off-by: Robert C. Helling <helling@atdotde.de> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
69b4a404b9
commit
9d8eb10421
3 changed files with 28 additions and 10 deletions
|
@ -520,7 +520,7 @@ static unsigned int *sort_stops(int *dstops, int dnr, struct gaschanges *gstops,
|
|||
|
||||
static void add_plan_to_notes(struct diveplan *diveplan, struct dive *dive, bool show_disclaimer, int error)
|
||||
{
|
||||
char buffer[20000], temp[1000];
|
||||
char buffer[2000000], temp[100000];
|
||||
int len, lastdepth = 0, lasttime = 0, lastsetpoint = -1, newdepth = 0, lastprintdepth = 0;
|
||||
struct divedatapoint *dp = diveplan->dp;
|
||||
bool gaschange = !plan_verbatim, postponed = plan_verbatim;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue