summaryrefslogtreecommitdiffstats
path: root/info.c
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org>2013-02-09 11:35:39 +1100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-02-08 18:28:38 -0800
commitb12b2f1c85a3c18a66b7bddffbae574212a33bc2 (patch)
tree7f6ef3267d9c76c548ea9348a23e6de9e1b02e5b /info.c
parent926fcef2a1e83b58c37c948a3f1a904aa0be0d0e (diff)
downloadsubsurface-b12b2f1c85a3c18a66b7bddffbae574212a33bc2.tar.gz
Walk over each divecomputer entry in fixup_dives()
The fixup_dives() code used to only look at the first divecomputer, which meant that minimun temperatures etc for the dive would only ever come from the primary divecomputer. This splits up the code that walks over the divecomputer into a function of its own, and iterates over all computers in fixup_dive() calling into it. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'info.c')
-rw-r--r--info.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/info.c b/info.c
index 91cca6123..18ff11146 100644
--- a/info.c
+++ b/info.c
@@ -658,7 +658,7 @@ static void print_gps_coordinates(char *buffer, int len, float lat, float lon)
londeg = lon;
latmin = (lat - latdeg) * 60.0;
lonmin = (lon - londeg) * 60.0;
- snprintf(buffer, len, "%s%u%s %6.3f\' , %s%u%s %6.3f\'",
+ snprintf(buffer, len, "%s%u%s %8.5f\' , %s%u%s %8.5f\'",
lath, latdeg, UTF8_DEGREE, latmin,
lonh, londeg, UTF8_DEGREE, lonmin);
}