From 04b6b6aaf9cc194a698c2302abc2032f730aecb4 Mon Sep 17 00:00:00 2001 From: "Robert C. Helling" Date: Sun, 25 May 2014 18:01:16 +0200 Subject: Use get_o2() and get_he() instead of accessing permilles directly This gets rid of problems with air. Signed-off-by: Robert C. Helling Signed-off-by: Dirk Hohndel --- dive.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dive.c') diff --git a/dive.c b/dive.c index 68f619bdd..6edcee7ba 100644 --- a/dive.c +++ b/dive.c @@ -488,7 +488,7 @@ static int same_rounded_pressure(pressure_t a, pressure_t b) return abs(a.mbar - b.mbar) <= 500; } -static void sanitize_gasmix(struct gasmix *mix) +void sanitize_gasmix(struct gasmix *mix) { unsigned int o2, he; @@ -1218,7 +1218,7 @@ static void merge_weightsystem_info(weightsystem_t *res, weightsystem_t *a, weig *res = *a; } -static int gasmix_distance(const struct gasmix *a, const struct gasmix *b) +int gasmix_distance(const struct gasmix *a, const struct gasmix *b) { int a_o2 = get_o2(a), b_o2 = get_o2(b); int a_he = get_he(a), b_he = get_he(b); -- cgit v1.2.3-70-g09d2