Reinstating SURFACE_THRESHOLD test in pressure_time function

The small straight parts at the end of tank pressure lines are more of a
aesthetic issue, not causing real harm so it is no reason to remove the
SURFACE_THRESHOLD test from pressure_time function only because of this.

Also improved interpolate data debuging, rearranged
get_pr_interpolate_data and removed an unused variable from
get_pr_interpolate_data. No real change here, just trying to make the code
clearer.

[Dirk Hohndel: clean up whitespace damage from this and the previous
               commit]

Signed-off-by: Rodrigo Severo <rodrigo@fabricadeideias.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Rodrigo Severo 2014-01-01 10:35:16 -02:00 committed by Dirk Hohndel
parent 8f0c8be245
commit eec5dba1c2
2 changed files with 27 additions and 21 deletions

View file

@ -41,7 +41,7 @@ struct plot_data {
int tts_calc;
int stoptime_calc;
int stopdepth_calc;
int pressure_time;
int pressure_time;
};
void calculate_max_limits(struct dive *dive, struct divecomputer *dc, struct graphics_context *gc);