diff options
author | Miika Turkia <miika.turkia@gmail.com> | 2015-04-30 17:48:06 -0600 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-04-30 16:54:27 -0700 |
commit | 5ab0cac1ca53ec61df8724c99f5b7f1bbae535f8 (patch) | |
tree | 12c2bd56a4879ef257d4e1e8ac62609ab3b4b792 /xslt/divelogs-export.xslt | |
parent | 2286bc89de3e0da627b21dcc5196db02cf49abca (diff) | |
download | subsurface-5ab0cac1ca53ec61df8724c99f5b7f1bbae535f8.tar.gz |
Set EON Steel sample interval to 10s on
This sets the Suunto EON Steel sample interval to 10 seconds when
exporting to divelogs.de.
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'xslt/divelogs-export.xslt')
-rw-r--r-- | xslt/divelogs-export.xslt | 42 |
1 files changed, 25 insertions, 17 deletions
diff --git a/xslt/divelogs-export.xslt b/xslt/divelogs-export.xslt index 5752a4452..904c89334 100644 --- a/xslt/divelogs-export.xslt +++ b/xslt/divelogs-export.xslt @@ -206,29 +206,37 @@ </xsl:variable> <SAMPLEINTERVAL> - <xsl:variable name="first"> - <xsl:call-template name="time2sec"> - <xsl:with-param name="time"> - <xsl:value-of select="node()/sample[1]/@time"/> - </xsl:with-param> - </xsl:call-template> - </xsl:variable> - <xsl:variable name="second"> - <xsl:call-template name="time2sec"> - <xsl:with-param name="time"> - <xsl:value-of select="node()/sample[2]/@time"/> - </xsl:with-param> - </xsl:call-template> - </xsl:variable> <xsl:choose> - <xsl:when test="$manual = 0"> - <xsl:value-of select="$second - $first"/> + <xsl:when test="divecomputer/@model = 'Suunto EON Steel'"> + <xsl:text>10</xsl:text> </xsl:when> <xsl:otherwise> - <xsl:value-of select="60"/> + <xsl:variable name="first"> + <xsl:call-template name="time2sec"> + <xsl:with-param name="time"> + <xsl:value-of select="node()/sample[1]/@time"/> + </xsl:with-param> + </xsl:call-template> + </xsl:variable> + <xsl:variable name="second"> + <xsl:call-template name="time2sec"> + <xsl:with-param name="time"> + <xsl:value-of select="node()/sample[2]/@time"/> + </xsl:with-param> + </xsl:call-template> + </xsl:variable> + <xsl:choose> + <xsl:when test="$manual = 0"> + <xsl:value-of select="$second - $first"/> + </xsl:when> + <xsl:otherwise> + <xsl:value-of select="60"/> + </xsl:otherwise> + </xsl:choose> </xsl:otherwise> </xsl:choose> </SAMPLEINTERVAL> + <xsl:for-each select="divecomputer[1]/sample"> <xsl:choose> <xsl:when test="$manual = 1 and @time != '0:00 min'"> |