mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Show EANxx for Nitrox in info tab
Showing all gases (except air) as (o2/he) feels a bit odd, most people would only use the two gas notation if they are actually diving trimix. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
04a7374917
commit
ee3bf421e1
1 changed files with 5 additions and 1 deletions
|
@ -351,6 +351,10 @@ char *get_gaslist(struct dive *dive)
|
||||||
he = get_he(&cyl->gasmix);
|
he = get_he(&cyl->gasmix);
|
||||||
if (is_air(o2, he))
|
if (is_air(o2, he))
|
||||||
snprintf(buf + offset, MAXBUF - offset, (offset > 0) ? ", %s" : "%s", _("air"));
|
snprintf(buf + offset, MAXBUF - offset, (offset > 0) ? ", %s" : "%s", _("air"));
|
||||||
|
else
|
||||||
|
if (he == 0)
|
||||||
|
snprintf(buf + offset, MAXBUF - offset, (offset > 0) ? _(", EAN%d") : _("EAN%d"),
|
||||||
|
(o2 + 5) / 10);
|
||||||
else
|
else
|
||||||
snprintf(buf + offset, MAXBUF - offset, (offset > 0) ? ", %d/%d" : "%d/%d",
|
snprintf(buf + offset, MAXBUF - offset, (offset > 0) ? ", %d/%d" : "%d/%d",
|
||||||
(o2 + 5) / 10, (he + 5) / 10);
|
(o2 + 5) / 10, (he + 5) / 10);
|
||||||
|
|
Loading…
Add table
Reference in a new issue