mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 06:15:26 +00:00
Fix Uemis Zurich downloads
Commit 48ba01b807
("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>
This commit is contained in:
parent
5ce5b05521
commit
98953831cd
1 changed files with 1 additions and 1 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Reference in a new issue