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");