mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
rename 'get_dive_by_diveid' to 'get_dive_by_uemis_diveid'
A bit longer, but we had a function named get_dive_by_diveid and another one named getDiveByDiveid that did completely different things, it was too easy to hit the wrong one.. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
6ab05563b3
commit
e1971e9425
2 changed files with 3 additions and 6 deletions
|
@ -751,7 +751,7 @@ static bool process_raw_buffer(uint32_t deviceid, char *inbuf, char **max_divenr
|
|||
dive->number = atoi(val);
|
||||
} else if (!log && !strcmp(tag, "logfilenr")) {
|
||||
/* this one tells us which dive we are adding data to */
|
||||
dive = get_dive_by_diveid(atoi(val), deviceid);
|
||||
dive = get_dive_by_uemis_diveid(atoi(val), deviceid);
|
||||
if (for_dive)
|
||||
*for_dive = atoi(val);
|
||||
} else if (!log && dive && !strcmp(tag, "divespot_id")) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue