From f139eff59005eee151d1d209044b6e28d357d6a1 Mon Sep 17 00:00:00 2001 From: Gehad elrobey Date: Thu, 26 Jun 2014 00:44:40 +0300 Subject: HTML: Add temperature and pressure curves to the JSON data. Add more dive sample details to the JSON data. This is not so optimized some zero values can be ignored. Signed-off-by: Gehad elrobey Signed-off-by: Miika Turkia Signed-off-by: Dirk Hohndel --- save-html.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/save-html.c b/save-html.c index bad1ef41c..451a3dab9 100644 --- a/save-html.c +++ b/save-html.c @@ -64,7 +64,7 @@ void put_HTML_samples(struct membuffer *b, struct dive *dive) put_string(b, "\"samples\":\["); struct sample *s = dive->dc.sample; for (i = 0; i < dive->dc.samples; i++) { - put_format(b, "[%d,%d],", s->time.seconds, s->depth.mm); + put_format(b, "[%d,%d,%d,%d],", s->time.seconds, s->depth.mm, s->cylinderpressure.mbar, s->temperature.mkelvin); s++; } put_string(b, "],"); -- cgit v1.2.3-70-g09d2