summaryrefslogtreecommitdiffstats
path: root/uemis-downloader.c
diff options
context:
space:
mode:
Diffstat (limited to 'uemis-downloader.c')
-rw-r--r--uemis-downloader.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/uemis-downloader.c b/uemis-downloader.c
index 22d3bdc7d..4a9f4272b 100644
--- a/uemis-downloader.c
+++ b/uemis-downloader.c
@@ -735,7 +735,8 @@ static char *get_divenr(char *deviceidstr)
struct divecomputer *dc = &dive_table.dives[i]->dc;
while (dc) {
if (dc->model && !strcmp(dc->model, "Uemis Zurich") &&
- dc->deviceid == deviceid && dc->diveid > maxdiveid)
+ (dc->deviceid == 0 || dc->deviceid == 0x7fffffff || dc->deviceid == deviceid) &&
+ dc->diveid > maxdiveid)
maxdiveid = dc->diveid;
dc = dc->next;
}