Correctly computer O2 partial pressure

I had forgotten a / 1000.0 in the conversion of partial pressures from (double) bar to (int32) mbar.

Fixes #763

Signed-off-by: Robert C. Helling <helling@atdotde.de>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Robert C. Helling 2014-11-20 15:55:11 +01:00 committed by Dirk Hohndel
parent 54237cb9a7
commit a4679300cc

View file

@ -865,7 +865,7 @@ static int calculate_ccr_po2(struct plot_data *entry, struct divecomputer *dc) {
} }
switch (np) { switch (np) {
case 0: // Uhoh case 0: // Uhoh
return entry->o2pressure.mbar / 1000.0; return entry->o2pressure.mbar;
case 1: // Return what we have case 1: // Return what we have
return sump; return sump;
case 2: // Take the average case 2: // Take the average