diff options
Diffstat (limited to 'equipment.c')
-rw-r--r-- | equipment.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/equipment.c b/equipment.c index adfb02989..fc31d9729 100644 --- a/equipment.c +++ b/equipment.c @@ -96,13 +96,13 @@ static void convert_volume_pressure(int ml, int mbar, double *v, double *p) volume *= bar_to_atm(mbar / 1000.0); } - if (output_units.pressure == PSI) { + if (output_units.pressure == PSI) pressure = mbar_to_PSI(mbar); - } else + else pressure = mbar / 1000.0; + *p = pressure; } *v = volume; - *p = pressure; } static int convert_weight(int grams, double *m) |