summaryrefslogtreecommitdiffstats
path: root/xslt/shearwater.xslt
diff options
context:
space:
mode:
authorGravatar Miika Turkia <miika.turkia@gmail.com>2017-05-30 06:46:25 +0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-05-30 13:25:08 -0700
commitf6f74a0a3e2658c784ae462c3d3b552e195893a9 (patch)
tree4570a44bbd6b2fd273539d5915157bc4c71d37f9 /xslt/shearwater.xslt
parentcbe03fd88d8c065d12a1825eef7119252037c150 (diff)
downloadsubsurface-f6f74a0a3e2658c784ae462c3d3b552e195893a9.tar.gz
Import pressure data for tank0 on Shearwater Desktop import
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Diffstat (limited to 'xslt/shearwater.xslt')
-rw-r--r--xslt/shearwater.xslt5
1 files changed, 5 insertions, 0 deletions
diff --git a/xslt/shearwater.xslt b/xslt/shearwater.xslt
index cd467557a..074c2ebde 100644
--- a/xslt/shearwater.xslt
+++ b/xslt/shearwater.xslt
@@ -148,6 +148,11 @@
</xsl:choose>
</xsl:attribute>
</xsl:if>
+ <xsl:if test="tank0pressurePSI != '' and tank0pressurePSI &gt; 0 and tank0pressurePSI &lt; 4092">
+ <xsl:attribute name="pressure">
+ <xsl:value-of select="concat(format-number((tank0pressurePSI div 14.5037738007), '#.##'), ' bar')"/>
+ </xsl:attribute>
+ </xsl:if>
</sample>
</xsl:for-each>
</divecomputer>