Changeset 67de8f3 in subsurface


Ignore:
Timestamp:
Feb 3, 2017, 7:43:00 AM (6 months ago)
Author:
Dirk Hohndel <dirk@…>
Branches:
master
Children:
5aa9c6fa
Parents:
8a8315d
git-author:
Robert Helling <helling@…> (02/03/17 07:32:27)
git-committer:
Dirk Hohndel <dirk@…> (02/03/17 07:43:00)
Message:

Correct: Handle more tanks than gasmixes

When Suunto Vytecs are used in gauge mode they don't record gasmixes.
If a tank pressure sensor is present they nevertheless record the
pressures. This patch handles this situation by assuming the tanks
contain air (and warning the user about this).

[Dirk Hohndel: I had mistakenly pushed out an earlier version of this

commit, so this fixes things up to the final version]

Reported-by: antonnorth@…
Signed-off-by: Robert C. Helling <helling@…>
Signed-off-by: Dirk Hohndel <dirk@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • core/libdivecomputer.c

    r9959554 r67de8f3  
    9797                if (ntanks && ntanks < ngases) {
    9898                        shown_warning = true;
    99                         report_error("Warning: different number of gases (%d) and tanks (%d)", ngases, ntanks);
     99                        report_error("Warning: different number of gases (%d) and cylinders (%d)", ngases, ntanks);
    100100                } else if (ntanks > ngases) {
    101101                        shown_warning = true;
    102                         report_error("Warning: smaller number of gases (%d) than tanks (%d). Assuming air.", ngases, ntanks);
     102                        report_error("Warning: smaller number of gases (%d) than cylinders (%d). Assuming air.", ngases, ntanks);
    103103                }
    104104        }
Note: See TracChangeset for help on using the changeset viewer.