diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2013-06-26 20:31:46 -1000 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-07-04 23:00:22 -0700 |
commit | 98953831cd26eb62aba4e9e4691d9194c9924caa (patch) | |
tree | f7a3878410d3a3adbc468e8819401b4431968133 | |
parent | 5ce5b05521ee8d939fa4f2951eeec8021177ccdf (diff) | |
download | subsurface-98953831cd26eb62aba4e9e4691d9194c9924caa.tar.gz |
Fix Uemis Zurich downloads
Commit 48ba01b807cc ("Enable downloads from the UEMIS Zurich")
mistakenly switched the meaning of the "force_download" argument when it
moved from "struct argument_block" to being a direct argument.
This fixes it right back.
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r-- | uemis-downloader.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/uemis-downloader.c b/uemis-downloader.c index ace806f68..9864cfe66 100644 --- a/uemis-downloader.c +++ b/uemis-downloader.c @@ -793,7 +793,7 @@ char *do_uemis_import(const char *mountpath, short force_download) param_buff[1] = "notempty"; /* if we have an empty divelist or force it, then we start downloading from the * first dive on the Uemis; otherwise check which was the last dive downloaded */ - if (force_download && dive_table.nr > 0) + if (!force_download && dive_table.nr > 0) newmax = uemis_get_divenr(deviceid); else newmax = strdup("0"); |