mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
926fcef2a1
commit
b12b2f1c85
2 changed files with 76 additions and 61 deletions
2
info.c
2
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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue