diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2013-02-09 11:35:39 +1100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-02-08 18:28:38 -0800 |
commit | b12b2f1c85a3c18a66b7bddffbae574212a33bc2 (patch) | |
tree | 7f6ef3267d9c76c548ea9348a23e6de9e1b02e5b /info.c | |
parent | 926fcef2a1e83b58c37c948a3f1a904aa0be0d0e (diff) | |
download | subsurface-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); } |