]> git.tdb.fi Git - ext/subsurface.git/commit
Print the end temperature of the dive
authorDirk Hohndel <dirk@hohndel.org>
Thu, 15 Sep 2011 16:10:08 +0000 (09:10 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 15 Sep 2011 16:33:13 +0000 (09:33 -0700)
commitefb1fa44b81419841d7c92104a69987c256a0028
tree4ce7bda83b774a3587dd78725cb213823b5d9f95
parentb49c878a74c7232994efba4bf56d309d8d224821
Print the end temperature of the dive

Currently we print the temperature every five minutes. Especially with
dive computers that keep rather frequent temperature samples that means
that we have one more interesting data point that we don't label: the
surface temperature at the end of the dive.

This patch adds some logic to try to print the last temperature sample
that was recorded before the dive ended - unless that same value has
already been printed (to avoid silly duplications on dive computers with
less frequent sampling)

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
profile.c