diff options
author | Willem Ferguson <willemferguson@zoology.up.ac.za> | 2018-06-04 16:30:00 +0200 |
---|---|---|
committer | Robert C. Helling <helling@atdotde.de> | 2018-06-06 21:48:06 +0200 |
commit | 780530f32ec8aa691916b839a96d8863e8dceb66 (patch) | |
tree | 43d1155d5e86bbff068aaeec1652e3a3fe9bfc20 | |
parent | 1c2ed7f49f08de08dd0d2e4b6fa51fa8f3a9a07f (diff) | |
download | subsurface-780530f32ec8aa691916b839a96d8863e8dceb66.tar.gz |
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>
-rw-r--r-- | core/dive.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/dive.c b/core/dive.c index c0a034280..a931c5dd0 100644 --- a/core/dive.c +++ b/core/dive.c @@ -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 |