From 86c961614bfa8ab9057319ea5f22816351a7f61a Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Mon, 19 Jan 2015 21:52:08 +1200 Subject: Actually walk all dive computers, don't just claim to do so If the first dive computer had pressure samples, but the second one (and no higher one) did, then we would draw a flat horizontal line for the tank pressure graph (but lable it with the correct pressures). This routine that is hunting for the actual maxima and minima does have to really go through all dive computers, not just "this one and up". Signed-off-by: Dirk Hohndel --- profile.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'profile.h') diff --git a/profile.h b/profile.h index 0ae9a8f84..726d10573 100644 --- a/profile.h +++ b/profile.h @@ -68,7 +68,7 @@ struct ev_select { bool plot_ev; }; -struct plot_info calculate_max_limits_new(struct dive *dive, struct divecomputer *dc); +struct plot_info calculate_max_limits_new(struct dive *dive); void compare_samples(struct plot_data *e1, struct plot_data *e2, char *buf, int bufsize, int sum); struct plot_data *populate_plot_entries(struct dive *dive, struct divecomputer *dc, struct plot_info *pi); struct plot_info *analyze_plot_info(struct plot_info *pi); -- cgit v1.2.3-70-g09d2