Record ppO2 only when on CCR mode

Shearwater describes the current mode with tag currentCircuitSetting,
thus we should record the ppO2 only when in CCR mode.

Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Miika Turkia 2014-12-06 21:38:28 +02:00 committed by Dirk Hohndel
parent 8cd5d08ba9
commit d7d5c296dd

View file

@ -103,16 +103,18 @@
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<xsl:attribute name="po2">
<xsl:choose>
<xsl:when test="$units = 'imperial'">
<xsl:value-of select="concat(averagePPO2 div 14.5037738, ' bar')"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="concat(averagePPO2, ' bar')"/>
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<xsl:if test="currentCircuitSetting = 0">
<xsl:attribute name="po2">
<xsl:choose>
<xsl:when test="$units = 'imperial'">
<xsl:value-of select="concat(averagePPO2 div 14.5037738, ' bar')"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="concat(averagePPO2, ' bar')"/>
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
</xsl:if>
</sample>
</xsl:for-each>
</dive>