summaryrefslogtreecommitdiffstats
path: root/save-html.c
diff options
context:
space:
mode:
authorGravatar Rick Walsh <rickmwalsh@gmail.com>2014-07-06 18:15:23 +1200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-07-11 06:59:07 -0700
commit62c09bc099222256b2525da74bb7739eba3591ba (patch)
treea4b440efb981332d15987a06a73bd0c99e9bcc38 /save-html.c
parente5c5ee74f0f9a6312765f4b55c57a244876f3508 (diff)
downloadsubsurface-62c09bc099222256b2525da74bb7739eba3591ba.tar.gz
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>
Diffstat (limited to 'save-html.c')
-rw-r--r--save-html.c8
1 files 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) {