mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
8cd5d08ba9
commit
d7d5c296dd
1 changed files with 12 additions and 10 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Reference in a new issue