diff options
author | Robert C. Helling <helling@atdotde.de> | 2014-05-25 18:01:16 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-05-26 08:12:32 -0700 |
commit | 04b6b6aaf9cc194a698c2302abc2032f730aecb4 (patch) | |
tree | e6360fb211f21ec4efc857d0269ed43ecbc6c470 /dive.h | |
parent | c86d055db77cdeef6049449ac79fe404c40d28cc (diff) | |
download | subsurface-04b6b6aaf9cc194a698c2302abc2032f730aecb4.tar.gz |
Use get_o2() and get_he() instead of accessing permilles directly
This gets rid of problems with air.
Signed-off-by: Robert C. Helling <helling@atdotde.de>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'dive.h')
-rw-r--r-- | dive.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -91,6 +91,9 @@ static inline int get_he(const struct gasmix *mix) return mix->he.permille; } +extern void sanitize_gasmix(struct gasmix *mix); +extern int gasmix_distance(const struct gasmix *a, const struct gasmix *b); + static inline bool is_air(int o2, int he) { return (he == 0) && (o2 == 0 || ((o2 >= O2_IN_AIR - 1) && (o2 <= O2_IN_AIR + 1))); |