From 16b6df559f7b5aabbcbec7d7d08f3687b30384dc Mon Sep 17 00:00:00 2001 From: Henrik Brautaset Aronsen Date: Sat, 31 Dec 2011 17:15:59 +0100 Subject: Define O2 permille for air in one spot Having the O2 permille defined once is more readable. Signed-off-by: Henrik Brautaset Aronsen --- statistics.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'statistics.c') diff --git a/statistics.c b/statistics.c index f8f9d0e24..9510030d7 100644 --- a/statistics.c +++ b/statistics.c @@ -171,7 +171,7 @@ void show_dive_stats(struct dive *dive) end = cyl->end.mbar ? : cyl->sample_end.mbar; if (!cylinder_none(cyl)) { /* 0% O2 strangely means air, so 21% - I don't like that at all */ - int o2 = cyl->gasmix.o2.permille ? : 209; + int o2 = cyl->gasmix.o2.permille ? : AIR_PERMILLE; if (offset > 0) { snprintf(buf+offset, 80-offset, ", "); offset += 2; -- cgit v1.2.3-70-g09d2