mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Uemis downloader: don't try to download divespots that weren't set
This should cut down on redundant calls to download divespot #0. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
f7eb6f6b58
commit
07a2514d9f
2 changed files with 3 additions and 2 deletions
2
uemis.c
2
uemis.c
|
|
@ -162,7 +162,7 @@ int uemis_get_divespot_id_by_diveid(uint32_t diveid)
|
|||
return hp->divespot;
|
||||
hp = hp->next;
|
||||
}
|
||||
return 0;
|
||||
return -1;
|
||||
}
|
||||
|
||||
void uemis_set_divelocation(int divespot, char *text, double longitude, double latitude)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue