From fd703f3ca0cd36cc93ec81560b926f98b3da8093 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Wed, 13 Feb 2013 22:23:09 -0800 Subject: Support deeper stops and longer dive notes in planner Since we now support dives all the way down to 400m we should also support deeper stops. And of course this can create insanely long dive plans, so make sure there is plenty of space for those. Signed-off-by: Dirk Hohndel --- planner.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/planner.c b/planner.c index 017031a19..43f5e83cb 100644 --- a/planner.c +++ b/planner.c @@ -15,7 +15,10 @@ int decostoplevels[] = { 0, 3000, 6000, 9000, 12000, 15000, 18000, 21000, 24000, 27000, 30000, 33000, 36000, 39000, 42000, 45000, 48000, 51000, 54000, 57000, 60000, 63000, 66000, 69000, 72000, 75000, 78000, 81000, 84000, 87000, - 90000}; + 90000, 100000, 110000, 120000, 130000, 140000, 150000, 160000, 170000, + 180000, 190000, 200000, 220000, 240000, 260000, 280000, 300000, + 320000, 340000, 360000, 380000 +}; double plangflow, plangfhigh; char *disclaimer; GtkWidget *planner, *planner_error_bar, *error_label; @@ -510,7 +513,7 @@ static int *sort_stops(int *dstops, int dnr, struct gaschanges *gstops, int gnr) static void add_plan_to_notes(struct diveplan *diveplan, struct dive *dive) { - char buffer[2000]; + char buffer[20000]; int consumption[MAX_CYLINDERS] = { 0, }; int len, gasidx, lastdepth = 0, lasttime = 0; struct divedatapoint *dp = diveplan->dp; -- cgit v1.2.3-70-g09d2