diff options
Diffstat (limited to 'core/dive.h')
-rw-r--r-- | core/dive.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/dive.h b/core/dive.h index 0cc3150ce..8b8b9fbf0 100644 --- a/core/dive.h +++ b/core/dive.h @@ -34,10 +34,14 @@ extern const char *cylinderuse_text[]; extern const char *divemode_text_ui[]; extern const char *divemode_text[]; +// o2 == 0 && he == 0 -> air +// o2 < 0 -> invalid struct gasmix { fraction_t o2; fraction_t he; }; +static const struct gasmix gasmix_invalid = { { -1 }, { -1 } }; +static const struct gasmix gasmix_air = { { 0 }, { 0 } }; typedef struct { |