From 907ccb0b7123e55908a10c12c851d47710cac05a Mon Sep 17 00:00:00 2001 From: "Robert C. Helling" Date: Thu, 14 May 2015 23:33:48 +0200 Subject: 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 Signed-off-by: Dirk Hohndel --- planner.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/planner.c b/planner.c index ed7687ec9..92ddc8491 100644 --- a/planner.c +++ b/planner.c @@ -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; -- cgit v1.2.3-70-g09d2