summaryrefslogtreecommitdiffstats
path: root/planner.c
diff options
context:
space:
mode:
authorGravatar Robert C. Helling <helling@atdotde.de>2015-05-07 22:59:12 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-05-08 10:02:45 -0700
commit9d8eb1042125e4e33b593f37aec2d5bab13f1ac6 (patch)
tree3064a137d3181f889d69e31d67679d3c8469ce5f /planner.c
parent69b4a404b9961bc9b3b2f3cbbf7e0bc634f3a5dd (diff)
downloadsubsurface-9d8eb1042125e4e33b593f37aec2d5bab13f1ac6.tar.gz
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>
Diffstat (limited to 'planner.c')
-rw-r--r--planner.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/planner.c b/planner.c
index 9de6a2159..af1db5079 100644
--- a/planner.c
+++ b/planner.c
@@ -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;