From 780530f32ec8aa691916b839a96d8863e8dceb66 Mon Sep 17 00:00:00 2001 From: Willem Ferguson Date: Mon, 4 Jun 2018 16:30:00 +0200 Subject: 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 --- core/dive.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core') 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 -- cgit v1.2.3-70-g09d2