aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2021-01-02 13:40:02 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2021-01-02 10:26:29 -0800
commit18acb85a01a932cbbf8da79cf3933a2e72c09564 (patch)
tree403f070ba4190032b7b53ae6bb720ee3f6dcd131 /core
parente943065977239d670f0176f6d09cffbb56960db9 (diff)
downloadsubsurface-18acb85a01a932cbbf8da79cf3933a2e72c09564.tar.gz
cleanup: don't save PASCAL pressure units to git
The way I understand, the PASCAL pressure unit is used to parse obscure dive logs. However, there is no support in the UI for using Pa as pressure unit. Therefore remove reading / writing this unit to git divelogs. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core')
-rw-r--r--core/dive.c2
-rw-r--r--core/save-git.c2
2 files changed, 1 insertions, 3 deletions
diff --git a/core/dive.c b/core/dive.c
index 5157afea0..9167724d9 100644
--- a/core/dive.c
+++ b/core/dive.c
@@ -2972,8 +2972,6 @@ void set_informational_units(const char *units)
git_prefs.units.pressure = BAR;
if (strstr(units, "PSI"))
git_prefs.units.pressure = PSI;
- if (strstr(units, "PASCAL"))
- git_prefs.units.pressure = PASCALS;
if (strstr(units, "CELSIUS"))
git_prefs.units.temperature = CELSIUS;
if (strstr(units, "FAHRENHEIT"))
diff --git a/core/save-git.c b/core/save-git.c
index bdc08fef6..cea69974b 100644
--- a/core/save-git.c
+++ b/core/save-git.c
@@ -842,7 +842,7 @@ static void save_units(void *_b)
put_format(b, "units PERSONALIZE %s %s %s %s %s %s\n",
prefs.units.length == METERS ? "METERS" : "FEET",
prefs.units.volume == LITER ? "LITER" : "CUFT",
- prefs.units.pressure == BAR ? "BAR" : prefs.units.pressure == PSI ? "PSI" : "PASCAL",
+ prefs.units.pressure == BAR ? "BAR" : "PSI",
prefs.units.temperature == CELSIUS ? "CELSIUS" : prefs.units.temperature == FAHRENHEIT ? "FAHRENHEIT" : "KELVIN",
prefs.units.weight == KG ? "KG" : "LBS",
prefs.units.vertical_speed_time == SECONDS ? "SECONDS" : "MINUTES");