mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 13:10:19 +00:00
Show O2 per cent if given in cylinder info
O2 per cent from dive computer should be shown in Dive Info if one is given even without pressure information for the cylinder. Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
c912e1fafb
commit
fe532a585c
1 changed files with 1 additions and 1 deletions
|
@ -172,7 +172,7 @@ void show_dive_stats(struct dive *dive)
|
|||
/* we assume that every valid cylinder has either a working pressure
|
||||
* or a size; but for good measure let's also accept cylinders with
|
||||
* a starting or ending pressure*/
|
||||
if (cyl->type.workingpressure.mbar || cyl->type.size.mliter || start || end) {
|
||||
if (cyl->type.workingpressure.mbar || cyl->type.size.mliter || cyl->gasmix.o2.permille || start || end) {
|
||||
/* 0% O2 strangely means air, so 21% - I don't like that at all */
|
||||
int o2 = cyl->gasmix.o2.permille ? : 209;
|
||||
if (offset > 0) {
|
||||
|
|
Loading…
Reference in a new issue