Corrects start and end pressure in HTML export

The start and end pressures were reported the wrong way.

Signed-off-by: Rick Walsh <rickmwalsh@gmail.com>
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Rick Walsh 2014-07-06 18:15:23 +12:00 committed by Dirk Hohndel
parent e5c5ee74f0
commit 62c09bc099

View file

@ -43,15 +43,15 @@ static void put_cylinder_HTML(struct membuffer *b, struct dive *dive)
put_pressure(b, cylinder->type.workingpressure, "\"WPressure\":\"", " bar\",");
if (cylinder->start.mbar) {
put_milli(b, "\"EPressure\":\"", cylinder->start.mbar, " bar\",");
put_milli(b, "\"SPressure\":\"", cylinder->start.mbar, " bar\",");
} else {
write_attribute(b, "EPressure", "--");
write_attribute(b, "SPressure", "--");
}
if (cylinder->end.mbar) {
put_milli(b, "\"SPressure\":\"", cylinder->end.mbar, " bar\",");
put_milli(b, "\"EPressure\":\"", cylinder->end.mbar, " bar\",");
} else {
write_attribute(b, "SPressure", "--");
write_attribute(b, "EPressure", "--");
}
if (cylinder->gasmix.o2.permille) {