Bugfix: Load PSC dive logs

The code changes to standardise the named of divemodes and to
separate internal divemode names and UI divemode names introduced
a bug that caused non-backward compatability with existing
dive logs. The reason for this is the definition of the
divemode_text strings in dive.c

This change reverses that definition and brings about correct
loading of PSCR dive logs as well as correct parsing of bailout
events involving PSCR.

Signed-off-by: Willem Ferguson <willemferguson@zoology.up.ac.za>
This commit is contained in:
Willem Ferguson 2018-06-04 16:30:00 +02:00 committed by Robert C. Helling
parent 1c2ed7f49f
commit 780530f32e

View file

@ -45,7 +45,7 @@ const char *divemode_text_ui[] = {
};
// For writing/reading files.
const char *divemode_text[] = {"OC", "CCR", "pSCR", "Freedive"};
const char *divemode_text[] = {"OC", "CCR", "PSCR", "Freedive"};
/*
* Adding a cylinder pressure sample field is not quite as trivial as it