mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Define O2 permille for air in one spot
Having the O2 permille defined once is more readable. Signed-off-by: Henrik Brautaset Aronsen <subsurface@henrik.synth.no>
This commit is contained in:
parent
2175226580
commit
16b6df559f
5 changed files with 8 additions and 6 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue