summaryrefslogtreecommitdiffstats
path: root/dive.h
diff options
context:
space:
mode:
Diffstat (limited to 'dive.h')
-rw-r--r--dive.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/dive.h b/dive.h
index 31115dfdb..6ad21aa1f 100644
--- a/dive.h
+++ b/dive.h
@@ -421,7 +421,7 @@ static inline struct divecomputer *get_dive_dc(struct dive *dive, int nr)
#define for_each_gps_location(_i, _x) \
for ((_i) = 0; ((_x) = get_gps_location(_i, &gps_location_table)) != NULL; (_i)++)
-static inline struct dive *get_dive_by_diveid(uint32_t diveid, uint32_t deviceid)
+static inline struct dive *get_dive_by_uemis_diveid(uint32_t diveid, uint32_t deviceid)
{
int i;
struct dive *dive;
@@ -435,10 +435,7 @@ static inline struct dive *get_dive_by_diveid(uint32_t diveid, uint32_t deviceid
}
return NULL;
}
-// this is very different from get_dive_by_diveid() (which is only used
-// by the UEMIS downloader) -- this uses the unique diveID to allow us
-// to hold an identifier for a dive across operations that might change
-// the dive_table
+
static inline struct dive *getDiveById(int id)
{
int i;