diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-02-13 07:14:30 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-02-13 14:27:34 -0800 |
commit | 6708e06872b395c5a0d22d4f5cf17f8ec19bdaf3 (patch) | |
tree | d335511cc33c4c6c2ad2812e349674bca6e69ad7 /dive.h | |
parent | be1b6c67c1ec0be77dfa65a1199bf8fc6d6101cf (diff) | |
download | subsurface-6708e06872b395c5a0d22d4f5cf17f8ec19bdaf3.tar.gz |
Adapt GPS coordinate download from our companion app to dive sites
This is a bit awkward now. We are downloading what looks like fake dives
in the v2 format. So we create a dive site for every single fix.
After we merge those new dive sites into the existing dives we need to
throw away all the dive sites that weren't used.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'dive.h')
-rw-r--r-- | dive.h | 11 |
1 files changed, 0 insertions, 11 deletions
@@ -389,17 +389,6 @@ extern void dive_set_geodata_from_picture(struct dive *d, struct picture *pic); extern int explicit_first_cylinder(struct dive *dive, struct divecomputer *dc); -static inline void copy_gps_location(struct dive *from, struct dive *to) -{ - if (from && to) { - to->latitude.udeg = from->latitude.udeg; - to->longitude.udeg = from->longitude.udeg; - if (!to->location) { - to->location = strdup(from->location); - } - } -} - static inline int get_surface_pressure_in_mbar(const struct dive *dive, bool non_null) { int mbar = dive->surface_pressure.mbar; |