From 62c09bc099222256b2525da74bb7739eba3591ba Mon Sep 17 00:00:00 2001 From: Rick Walsh Date: Sun, 6 Jul 2014 18:15:23 +1200 Subject: Corrects start and end pressure in HTML export The start and end pressures were reported the wrong way. Signed-off-by: Rick Walsh Signed-off-by: Miika Turkia Signed-off-by: Dirk Hohndel --- save-html.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/save-html.c b/save-html.c index e1116aa77..13bf70c14 100644 --- a/save-html.c +++ b/save-html.c @@ -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) { -- cgit v1.2.3-70-g09d2