Allow "oxygen" as a gas name
...as this what comes in when the user selects this gas in the add dive/dive planner contet menu. Signed-off-by: Robert C. Helling <helling@atdotde.de> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
253d9ff300
commit
907ccb0b71
@ -1179,6 +1179,10 @@ int validate_gas(const char *text, struct gasmix *gas)
|
||||
o2 = O2_IN_AIR;
|
||||
he = 0;
|
||||
text += strlen(translate("gettextFromC", "air"));
|
||||
} else if (!strcasecmp(text, translate("gettextFromC", "oxygen"))) {
|
||||
o2 = 1000;
|
||||
he = 0;
|
||||
text += strlen(translate("gettextFromC", "oxygen"));
|
||||
} else if (!strncasecmp(text, translate("gettextFromC", "ean"), 3)) {
|
||||
o2 = get_permille(text + 3, &text);
|
||||
he = 0;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user